MainContextAwareTrait
trait MainContextAwareTrait (View source)
Represents a behat context which is aware of a main {SilverStripeContext} context.
Nested contexts are bootstrapped by SilverStripeContext::gatherContexts()
Properties
protected | SilverStripeContext | $mainContext |
Methods
Details
SilverStripeContext
getMainContext()
Get the main context
$this
setMainContext(SilverStripeContext $mainContext)
No description
detectMainContext(BeforeScenarioScope $scope)
Helper method to detect the main context