You are here

protected function ContentModerationTest::assertAllMedia in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ContentModerationTest::assertAllMedia()
  2. 10 core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ContentModerationTest::assertAllMedia()

Asserts all media items are visible.

1 call to ContentModerationTest::assertAllMedia()
ContentModerationTest::testAdministrationPage in core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php
Tests the media library widget only shows published media.

File

core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php, line 316

Class

ContentModerationTest
Tests media library integration with content moderation.

Namespace

Drupal\Tests\media_library\FunctionalJavascript

Code

protected function assertAllMedia() {
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->pageTextContains('Hoglet');
  $assert_session
    ->pageTextContains('Panda');
  $assert_session
    ->pageTextContains('Mammoth');
}