protected function ContentModerationTest::assertOnlyPublishedMedia 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::assertOnlyPublishedMedia()
Asserts only published media items are visible.
2 calls to ContentModerationTest::assertOnlyPublishedMedia()
- ContentModerationTest::testAdministrationPage in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ ContentModerationTest.php - Tests the media library widget only shows published media.
- ContentModerationTest::testWidget 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 326
Class
- ContentModerationTest
- Tests media library integration with content moderation.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function assertOnlyPublishedMedia() {
$assert_session = $this
->assertSession();
$assert_session
->pageTextNotContains('Hoglet');
$assert_session
->pageTextContains('Panda');
$assert_session
->pageTextNotContains('Mammoth');
}