You are here

public function BookLocalTasksTest::getBookNodeRoutes in Drupal 10

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

Provides a list of routes to test.

File

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

Class

BookLocalTasksTest
Tests existence of book local tasks.

Namespace

Drupal\Tests\book\Unit\Menu

Code

public function getBookNodeRoutes() {
  return [
    [
      'entity.node.canonical',
    ],
    [
      'entity.node.book_outline_form',
    ],
  ];
}