From 1b11fa7a7aaf98148a17f7ae0f693f4f0d01d673 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Mon, 5 Feb 2018 16:07:33 +0100 Subject: [PATCH] Constructs the default fixture manager if 'fixtureManager' parameter is an empty string. --- lib/Cake/TestSuite/CakeTestRunner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/TestSuite/CakeTestRunner.php b/lib/Cake/TestSuite/CakeTestRunner.php index b8ded6f09..dfd2321de 100644 --- a/lib/Cake/TestSuite/CakeTestRunner.php +++ b/lib/Cake/TestSuite/CakeTestRunner.php @@ -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'];