function BookLocalTasksTest::testBookNodeLocalTasks

Same name in other branches
  1. 8.9.x core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest::testBookNodeLocalTasks()
  2. 10 core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest::testBookNodeLocalTasks()
  3. 11.x 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 52

Class

BookLocalTasksTest
Tests existence of book local tasks.

Namespace

Drupal\Tests\book\Unit\Menu

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.