function BlockLocalTasksTest::testBlockAdminLocalTasks

Same name in other branches
  1. 9 core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php \Drupal\Tests\block\Unit\Menu\BlockLocalTasksTest::testBlockAdminLocalTasks()
  2. 10 core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php \Drupal\Tests\block\Unit\Menu\BlockLocalTasksTest::testBlockAdminLocalTasks()
  3. 11.x core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php \Drupal\Tests\block\Unit\Menu\BlockLocalTasksTest::testBlockAdminLocalTasks()

Tests the admin edit local task.

File

core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php, line 65

Class

BlockLocalTasksTest
Tests block local tasks.

Namespace

Drupal\Tests\block\Unit\Menu

Code

public function testBlockAdminLocalTasks() {
    $this->assertLocalTasks('entity.block.edit_form', [
        [
            'entity.block.edit_form',
        ],
    ]);
}

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