mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixing bootstrap.php to work with FakeController properly for
running tests using phpunit.xml file.
This commit is contained in:
parent
f546ab2a70
commit
8b607db0a2
2
main.php
2
main.php
@ -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']) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user