From ee4d8b738162b01ea09e3b3e8c3f2cca09f1e821 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 9 Nov 2012 15:46:33 +0100 Subject: [PATCH] BUGFIX Flush manifests when bootstrapping tests --- .../Context/Initializer/SilverStripeAwareInitializer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SilverStripe/BehatExtension/Context/Initializer/SilverStripeAwareInitializer.php b/src/SilverStripe/BehatExtension/Context/Initializer/SilverStripeAwareInitializer.php index 93ad1f8..37f3aef 100644 --- a/src/SilverStripe/BehatExtension/Context/Initializer/SilverStripeAwareInitializer.php +++ b/src/SilverStripe/BehatExtension/Context/Initializer/SilverStripeAwareInitializer.php @@ -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();