Constructs the default fixture manager if 'fixtureManager' parameter is an empty string.

This commit is contained in:
Val Bancer 2018-02-05 16:07:33 +01:00 committed by GitHub
parent f0abce55f2
commit 1b11fa7a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];