mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
BUGFIX Flush manifests when bootstrapping tests
This commit is contained in:
parent
99761ac1f9
commit
ee4d8b7381
@ -73,8 +73,10 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
global $_FILE_TO_URL_MAPPING;
|
global $_FILE_TO_URL_MAPPING;
|
||||||
$_FILE_TO_URL_MAPPING[dirname($framework_path)] = $framework_host;
|
$_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';
|
require_once $framework_path . '/core/Core.php';
|
||||||
|
unset($_GET['flush']);
|
||||||
|
|
||||||
// Remove the error handler so that PHPUnit can add its own
|
// Remove the error handler so that PHPUnit can add its own
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
|
Loading…
Reference in New Issue
Block a user