mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
analyze code coverage link on same line as the other test links,
fixing wrong security expectation git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6836 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4b91712791
commit
f420d1494e
2 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ class SecurityTest extends UnitTestCase {
|
|||
$this->assertIdentical(strlen(Security::hash($key, null, true)), 32);
|
||||
|
||||
|
||||
if (function_exists('sha256')) {
|
||||
if (function_exists('mhash')) {
|
||||
$this->assertIdentical(strlen(Security::hash($key, 'sha256', false)), 64);
|
||||
$this->assertIdentical(strlen(Security::hash($key, 'sha256', true)), 64);
|
||||
} else {
|
||||
|
|
|
@ -455,7 +455,7 @@ if (function_exists('caketestsgetreporter')) {
|
|||
$query .= '&plugin=' . $_GET['plugin'];
|
||||
}
|
||||
}
|
||||
echo "<p><a href='" . RUN_TEST_LINK . $show . "'>Run more tests</a> | <a href='" . RUN_TEST_LINK . $query . "&show_passes=1'>Show Passes</a></p>\n";
|
||||
echo "<p><a href='" . RUN_TEST_LINK . $show . "'>Run more tests</a> | <a href='" . RUN_TEST_LINK . $query . "&show_passes=1'>Show Passes</a> | \n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -479,7 +479,7 @@ if (function_exists('caketestsgetreporter')) {
|
|||
}
|
||||
}
|
||||
$query .= '&code_coverage=true';
|
||||
echo "<p><a href='" . RUN_TEST_LINK . $query . "'>Analyze Code Coverage</a></p>\n";
|
||||
echo " <a href='" . RUN_TEST_LINK . $query . "'>Analyze Code Coverage</a></p>\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue