mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Comply with moved use_test_manifest() method
Moved from TestRunner to SapphireTest in 4.0.
This commit is contained in:
parent
4a9db2be90
commit
661bfe9a89
@ -21,7 +21,14 @@ class CoreInitializationPass implements CompilerPassInterface
|
||||
$frameworkPath = $container->getParameter('behat.silverstripe_extension.framework_path');
|
||||
$_GET['flush'] = 1;
|
||||
require_once $frameworkPath . '/core/Core.php';
|
||||
|
||||
if(class_exists('TestRunner')) {
|
||||
// 3.x compat
|
||||
\TestRunner::use_test_manifest();
|
||||
} else {
|
||||
\SapphireTest::use_test_manifest();
|
||||
}
|
||||
|
||||
unset($_GET['flush']);
|
||||
|
||||
// Remove the error handler so that PHPUnit can add its own
|
||||
|
Loading…
Reference in New Issue
Block a user