mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing notice when not group tests are found
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4436 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
8dc3209a59
commit
45162b05fd
1 changed files with 5 additions and 0 deletions
|
@ -312,6 +312,11 @@ class HtmlTestManager extends TestManager {
|
|||
$manager =& new HtmlTestManager();
|
||||
$groupTests =& $manager->_getTestGroupList($directory);
|
||||
|
||||
if (1 > count($groupTests)) {
|
||||
$noGroupTests = "<p>No test cases set up!</p>";
|
||||
return $noGroupTests;
|
||||
}
|
||||
|
||||
if (isset($_GET['app'])){
|
||||
$buffer = "<p>Available App Test Groups:</p>\n<ul>";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue