mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
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()
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|