mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding a condition for the fixture creation so it doesn't cause errors.
This commit is contained in:
parent
86eb46ca87
commit
6300027a87
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ class CakeTestSuite extends PHPUnit_Framework_TestSuite {
|
|||
*/
|
||||
protected function tearDown() {
|
||||
parent::tearDown();
|
||||
$this->_fixtureManager->shutDown();
|
||||
if ($this->_fixtureManager) {
|
||||
$this->_fixtureManager->shutDown();
|
||||
}
|
||||
$this->_fixtureManager = null;
|
||||
$this->sharedFixture = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue