protected function ContentModerationTest::assertAllMedia in Drupal 9
Same name and namespace in other branches
- 8 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\FunctionalJavascriptCode
protected function assertAllMedia() {
$assert_session = $this
->assertSession();
$assert_session
->pageTextContains('Hoglet');
$assert_session
->pageTextContains('Panda');
$assert_session
->pageTextContains('Mammoth');
}