mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Checking test to avoid fatal error when the test case dont have test actions.
This commit is contained in:
parent
1debcb9ce6
commit
646bb936bf
1 changed files with 4 additions and 3 deletions
|
@ -83,10 +83,11 @@ class CakeTestSuite extends PHPUnit_Framework_TestSuite {
|
|||
if (!$this->_fixtureManager) {
|
||||
return;
|
||||
}
|
||||
$classes = array();
|
||||
foreach ($this->getIterator() as $test) {
|
||||
$this->_fixtureManager->fixturize($test);
|
||||
$test->fixtureManager = $this->_fixtureManager;
|
||||
if ($test instanceof CakeTestCase) {
|
||||
$this->_fixtureManager->fixturize($test);
|
||||
$test->fixtureManager = $this->_fixtureManager;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue