public function EntityBrowserContext::setUp in Lightning Media 8.2
Same name and namespace in other branches
- 8.3 tests/contexts/EntityBrowserContext.behat.inc \Acquia\LightningExtension\Context\EntityBrowserContext::setUp()
Performs pre-scenario tasks.
@BeforeScenario
File
- tests/
contexts/ EntityBrowserContext.behat.inc, line 36
Class
- EntityBrowserContext
- Contains step definitions for interacting with entity browser instances.
Namespace
Acquia\LightningExtension\ContextCode
public function setUp(ScenarioScope $scope) {
// Check if the feature or scenario has the 'javascript' tag.
$tags = array_merge($scope
->getScenario()
->getTags(), $scope
->getFeature()
->getTags());
$this->isJS = in_array('javascript', $tags, TRUE);
}