You are here

public function MediaEntityContext::createMultiple in Lightning Media 8.3

Same name and namespace in other branches
  1. 8 tests/contexts/MediaEntityContext.behat.inc \Acquia\LightningExtension\Context\MediaEntityContext::createMultiple()
  2. 8.2 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 47

Class

MediaEntityContext
Contains step definitions for interacting with media entities.

Namespace

Acquia\LightningExtension\Context

Code

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