You are here

protected function MediaRevisionsUiTest::assertRevisionsTabNotExists in Media Revisions UI 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/MediaRevisionsUiTest.php \Drupal\Tests\media_revisions_ui\Functional\MediaRevisionsUiTest::assertRevisionsTabNotExists()

Asserts that "Revisions" tab does not exist on edit page.

Parameters

\Drupal\Core\Entity\EntityInterface $media: Media to visit edit page.

1 call to MediaRevisionsUiTest::assertRevisionsTabNotExists()
MediaRevisionsUiTest::testTabAccess in tests/src/Functional/MediaRevisionsUiTest.php
Tests access to media revisions tab.

File

tests/src/Functional/MediaRevisionsUiTest.php, line 184

Class

MediaRevisionsUiTest
Tests media revisions UI.

Namespace

Drupal\Tests\media_revisions_ui\Functional

Code

protected function assertRevisionsTabNotExists(EntityInterface $media) {
  $this
    ->drupalGet("/media/{$media->id()}/edit");
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->linkByHrefNotExists("/media/{$media->id()}/revisions");
}