BUGFIX Flush manifests when bootstrapping tests

This commit is contained in:
Ingo Schommer 2012-11-09 15:46:33 +01:00
parent 99761ac1f9
commit ee4d8b7381
1 changed files with 3 additions and 1 deletions

View File

@ -73,8 +73,10 @@ class SilverStripeAwareInitializer implements InitializerInterface
global $_FILE_TO_URL_MAPPING;
$_FILE_TO_URL_MAPPING[dirname($framework_path)] = $framework_host;
// Connect to database
// Connect to database and build manifest
$_GET['flush'] = 1;
require_once $framework_path . '/core/Core.php';
unset($_GET['flush']);
// Remove the error handler so that PHPUnit can add its own
restore_error_handler();