You are here

public function MediaEntityContext::setUp in Lightning Media 8.3

@BeforeScenario

File

tests/contexts/MediaEntityContext.behat.inc, line 30

Class

MediaEntityContext
Contains step definitions for interacting with media entities.

Namespace

Acquia\LightningExtension\Context

Code

public function setUp() {

  // Automatically delete all media items created by the user during this
  // scenario.

  /** @var \Drupal\Tests\lightning_media\FixtureContext $fixtureContext */
  if ($fixtureContext = $this
    ->getContext(FixtureContext::class)) {
    $fixtureContext
      ->trackUserContent($this
      ->getUserManager(), 'media');
  }
}