You are here

public function EntityLocalTaskTest::testCollectionLocalAction in Entity API 8

Tests the local tasks of the entity are provided correctly.

File

tests/src/Functional/Menu/EntityLocalTaskTest.php, line 57

Class

EntityLocalTaskTest
Tests that entity local tasks are generated correctly.

Namespace

Drupal\Tests\entity\Functional\Menu

Code

public function testCollectionLocalAction() {
  $this
    ->drupalGet($this->viewPath);
  $this
    ->assertLocalTasks();
  $this
    ->clickLink('Edit');
  $this
    ->assertLocalTasks();
  $this
    ->clickLink('Duplicate');
  $this
    ->assertLocalTasks();
  $this
    ->clickLink('Revisions');
  $this
    ->assertLocalTasks();
}