BUGFIX Fixing bootstrap.php to work with FakeController properly for

running tests using phpunit.xml file.
This commit is contained in:
Sean Harvey 2012-05-09 22:42:45 +12:00
parent f546ab2a70
commit 8b607db0a2
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ if (isset($_GET['debug_profile'])) {
}
// Connect to database
require_once("model/DB.php");
require_once('model/DB.php');
// Redirect to the installer if no database is selected
if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) {

View File

@ -37,7 +37,9 @@ if(isset($_SERVER['argv'][2])) {
$_GET['flush'] = 1;
// Connect to database
require_once($frameworkPath . "/core/Core.php");
require_once $frameworkPath . '/core/Core.php';
require_once $frameworkPath . '/tests/FakeController.php';
global $databaseConfig;
DB::connect($databaseConfig);