You are here

public function MediaEntityContext::createMultiple in Lightning Media 8

Same name and namespace in other branches
  1. 8.2 tests/contexts/MediaEntityContext.behat.inc \Acquia\LightningExtension\Context\MediaEntityContext::createMultiple()
  2. 8.3 tests/contexts/MediaEntityContext.behat.inc \Acquia\LightningExtension\Context\MediaEntityContext::createMultiple()

Creates a set of media items from tabular data.

@Given media items:

Parameters

\Behat\Gherkin\Node\TableNode $table: The table of entity data.

File

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

Class

MediaEntityContext

Namespace

Acquia\LightningExtension\Context

Code

public function createMultiple(TableNode $table) {
  $this
    ->getContext(EntityContext::class)
    ->createMultiple('media', $table);
}