protected function MediaRevisionsUiTest::assertRevisionsTabExists in Media Revisions UI 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/MediaRevisionsUiTest.php \Drupal\Tests\media_revisions_ui\Functional\MediaRevisionsUiTest::assertRevisionsTabExists()
Asserts that "Revisions" tab does exists on edit page.
Parameters
\Drupal\Core\Entity\EntityInterface $media: Media to visit edit page.
1 call to MediaRevisionsUiTest::assertRevisionsTabExists()
- MediaRevisionsUiTest::testTabAccess in tests/
src/ Functional/ MediaRevisionsUiTest.php - Tests access to media revisions tab.
File
- tests/
src/ Functional/ MediaRevisionsUiTest.php, line 197
Class
- MediaRevisionsUiTest
- Tests media revisions UI.
Namespace
Drupal\Tests\media_revisions_ui\FunctionalCode
protected function assertRevisionsTabExists(EntityInterface $media) {
$this
->drupalGet("/media/{$media->id()}/edit");
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->linkByHrefExists("/media/{$media->id()}/revisions");
}