mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Constructs the default fixture manager if 'fixtureManager' parameter is an empty string.
This commit is contained in:
parent
f0abce55f2
commit
1b11fa7a7a
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner {
|
|||
* @throws RuntimeException When fixture manager class cannot be loaded.
|
||||
*/
|
||||
protected function _getFixtureManager($arguments) {
|
||||
if (isset($arguments['fixtureManager'])) {
|
||||
if (!empty($arguments['fixtureManager'])) {
|
||||
App::uses($arguments['fixtureManager'], 'TestSuite');
|
||||
if (class_exists($arguments['fixtureManager'])) {
|
||||
return new $arguments['fixtureManager'];
|
||||
|
|
Loading…
Reference in a new issue