You are here

protected function ContentModerationTest::assertAllMedia in Drupal 10

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

Asserts all media items are visible.

@internal

File

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

Class

ContentModerationTest
Tests media library integration with content moderation.

Namespace

Drupal\Tests\media_library\FunctionalJavascript

Code

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