FIX Ensure that mysite test boostrap configuration is loaded after core and before the database connection

This commit is contained in:
Robbie Averill 2017-04-11 13:31:58 +12:00
parent b8c3bf6fa5
commit 1ca51eb57a
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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);