You are here

public function BookLocalTasksTest::testBookNodeLocalTasks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest::testBookNodeLocalTasks()

Tests local task existence.

@dataProvider getBookNodeRoutes

File

core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php, line 54
Contains \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest.

Class

BookLocalTasksTest
Tests existence of book local tasks.

Namespace

Drupal\Tests\book\Unit\Menu

Code

public function testBookNodeLocalTasks($route) {
  $this
    ->assertLocalTasks($route, array(
    0 => array(
      'entity.node.book_outline_form',
      'entity.node.canonical',
      'entity.node.edit_form',
      'entity.node.delete_form',
      'entity.node.version_history',
    ),
  ));
}