You are here

public function BookLocalTasksTest::testBookAdminLocalTasks in Drupal 9

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

Tests local task existence.

@dataProvider getBookAdminRoutes

File

core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php, line 27

Class

BookLocalTasksTest
Tests existence of book local tasks.

Namespace

Drupal\Tests\book\Unit\Menu

Code

public function testBookAdminLocalTasks($route) {
  $this
    ->assertLocalTasks($route, [
    0 => [
      'book.admin',
      'book.settings',
    ],
  ]);
}