mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Fix include paths
This commit is contained in:
parent
1271a4e48d
commit
7e50e57766
@ -21,7 +21,7 @@ class CoreInitializationPass implements CompilerPassInterface
|
|||||||
// Connect to database and build manifest
|
// Connect to database and build manifest
|
||||||
$frameworkPath = $container->getParameter('behat.silverstripe_extension.framework_path');
|
$frameworkPath = $container->getParameter('behat.silverstripe_extension.framework_path');
|
||||||
$_GET['flush'] = 1;
|
$_GET['flush'] = 1;
|
||||||
require_once $frameworkPath . '/core/Core.php';
|
require_once $frameworkPath . '/Core/Core.php';
|
||||||
|
|
||||||
SapphireTest::use_test_manifest();
|
SapphireTest::use_test_manifest();
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ class InitProcessor extends BaseProcessor
|
|||||||
// Bootstrap SS so we can use module listing
|
// Bootstrap SS so we can use module listing
|
||||||
$frameworkPath = $this->container->getParameter('behat.silverstripe_extension.framework_path');
|
$frameworkPath = $this->container->getParameter('behat.silverstripe_extension.framework_path');
|
||||||
$_GET['flush'] = 1;
|
$_GET['flush'] = 1;
|
||||||
require_once $frameworkPath . '/core/Core.php';
|
require_once $frameworkPath . '/Core/Core.php';
|
||||||
unset($_GET['flush']);
|
unset($_GET['flush']);
|
||||||
|
|
||||||
$featuresPath = $input->getArgument('features');
|
$featuresPath = $input->getArgument('features');
|
||||||
|
@ -193,7 +193,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
|
|
||||||
// Connect to database and build manifest
|
// Connect to database and build manifest
|
||||||
$_GET['flush'] = 1;
|
$_GET['flush'] = 1;
|
||||||
require_once $frameworkPath . '/core/Core.php';
|
require_once $frameworkPath . '/Core/Core.php';
|
||||||
unset($_GET['flush']);
|
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
|
||||||
|
@ -4,4 +4,4 @@ $frameworkDir = basename($frameworkPath);
|
|||||||
if (!defined('BASE_PATH')) {
|
if (!defined('BASE_PATH')) {
|
||||||
define('BASE_PATH', dirname($frameworkPath));
|
define('BASE_PATH', dirname($frameworkPath));
|
||||||
}
|
}
|
||||||
require_once $frameworkPath . '/core/Core.php';
|
require_once $frameworkPath . '/Core/Core.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user