You are here

public function EntityBrowserContext::setUp in Lightning Media 8.3

Same name and namespace in other branches
  1. 8.2 tests/contexts/EntityBrowserContext.behat.inc \Acquia\LightningExtension\Context\EntityBrowserContext::setUp()

Performs pre-scenario tasks.

@BeforeScenario

File

tests/contexts/EntityBrowserContext.behat.inc, line 40

Class

EntityBrowserContext
Contains step definitions for interacting with entity browser instances.

Namespace

Acquia\LightningExtension\Context

Code

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);
}