class Extension implements Extension (View source)

SilverStripe extension for Behat class.

Configured by adding SilverStripe\BehatExtension\Extension to your behat.yml

Constants

SILVERSTRIPE_ID

Extension configuration ID.

Methods

public
getConfigKey()

{@inheritDoc}

public
initialize(ExtensionManager $extensionManager)

No description

public
load(ContainerBuilder $container, array $config)

No description

public
process(ContainerBuilder $container)

{@inheritDoc}

public
configure(ArrayNodeDefinition $builder)

No description

protected
loadSuiteLocator(ContainerBuilder $container)

Loads module suite locator.

protected
loadBootstrapController(ContainerBuilder $container)

Loads suite bootstrap controller.

protected
loadCallHandlers(ContainerBuilder $container, int $errorReporting, int $retrySeconds)

Shivs in custom call handler

Details

getConfigKey()

{@inheritDoc}

initialize(ExtensionManager $extensionManager)

No description

Parameters

ExtensionManager $extensionManager

load(ContainerBuilder $container, array $config)

No description

Parameters

ContainerBuilder $container
array $config

process(ContainerBuilder $container)

{@inheritDoc}

Parameters

ContainerBuilder $container

configure(ArrayNodeDefinition $builder)

No description

Parameters

ArrayNodeDefinition $builder

protected loadSuiteLocator(ContainerBuilder $container)

Loads module suite locator.

This is responsible for bootstrapping the module config for running tests.

Parameters

ContainerBuilder $container

protected loadBootstrapController(ContainerBuilder $container)

Loads suite bootstrap controller.

This is responsible for invoking --init commands for modules. Replaces the core behat InitializationController

Parameters

ContainerBuilder $container

See also

InitializationController

protected loadCallHandlers(ContainerBuilder $container, int $errorReporting, int $retrySeconds)

Shivs in custom call handler

Parameters

ContainerBuilder $container
int $errorReporting
int $retrySeconds