mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Ensure that mysite test boostrap configuration is loaded after core and before the database connection
This commit is contained in:
parent
b8c3bf6fa5
commit
1ca51eb57a
@ -3,5 +3,4 @@
|
||||
require __DIR__ . '/bootstrap/init.php';
|
||||
require __DIR__ . '/bootstrap/cli.php';
|
||||
require __DIR__ . '/bootstrap/environment.php';
|
||||
require __DIR__ . '/bootstrap/mysite.php';
|
||||
require __DIR__ . '/bootstrap/phpunit.php';
|
||||
|
@ -8,6 +8,9 @@ use SilverStripe\ORM\DB;
|
||||
require_once __DIR__ . '/../../src/Core/Core.php';
|
||||
require_once __DIR__ . '/../php/Control/FakeController.php';
|
||||
|
||||
// Bootstrap a mock project configuration
|
||||
require __DIR__ . '/mysite.php';
|
||||
|
||||
global $databaseConfig;
|
||||
DB::connect($databaseConfig);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user