You are here

protected function MigrateEmbedMediaTokenTestBase::assertRenderedEmbedMedia in Media Migration 8

Ensures that the rendered embed media exists.

1 call to MigrateEmbedMediaTokenTestBase::assertRenderedEmbedMedia()
MigrateEmbedMediaTokenTestBase::assertMediaTokenTransform in tests/src/Functional/MigrateEmbedMediaTokenTestBase.php
Asserts the result of Media Migration's embed media token transform.

File

tests/src/Functional/MigrateEmbedMediaTokenTestBase.php, line 85

Class

MigrateEmbedMediaTokenTestBase
Base class for testing media token transformations.

Namespace

Drupal\Tests\media_migration\Functional

Code

protected function assertRenderedEmbedMedia() {

  // The embed media's image field should be present.
  $this
    ->assertSession()
    ->responseNotContains('The referenced media source is missing and needs to be re-embedded.');
  $this
    ->assertNotNull($this
    ->getSession()
    ->getPage()
    ->find('css', $this->embedMediaCssSelector));
}