function BookLocalTasksTest::testBookAdminLocalTasks

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

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',
        ],
    ]);
}

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