mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
e98233db65
Removed framework_host since its no longer necessary due to the changed execution logic. Unfortunately had to subclass the existing Mink Extension class since we can't influence its config persistence from our own extensions (with a completely separate ContainerBuilder). Also restructured README to be more focused on execution rather than diving into deep config concerns early on.
21 lines
487 B
PHP
21 lines
487 B
PHP
<?php
|
|
|
|
namespace SilverStripe\BehatExtension;
|
|
|
|
/**
|
|
* Subclass the main extension in order to get a say in the config compilation.
|
|
* We need to intercept setting the base_url to auto-detect it from SilverStripe configuration.
|
|
*/
|
|
class MinkExtension extends \Behat\MinkExtension\Extension
|
|
{
|
|
|
|
public function getCompilerPasses()
|
|
{
|
|
return array_merge(
|
|
array(new Compiler\MinkExtensionBaseUrlPass()),
|
|
parent::getCompilerPasses()
|
|
);
|
|
}
|
|
|
|
}
|