function ContentModerationTest::assertOnlyPublishedMedia
Same name in other branches
- 9 core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ContentModerationTest::assertOnlyPublishedMedia()
- 8.9.x core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ContentModerationTest::assertOnlyPublishedMedia()
- 10 core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ContentModerationTest::assertOnlyPublishedMedia()
Asserts only published media items are visible.
@internal
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 342
Class
- ContentModerationTest
- Tests media library integration with content moderation.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function assertOnlyPublishedMedia() : void {
$assert_session = $this->assertSession();
$assert_session->pageTextNotContains('Hoglet');
$assert_session->pageTextContains('Panda');
$assert_session->pageTextNotContains('Mammoth');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.