You are here

public function BlockContentLocalTasksTest::testBlockContentListLocalTasks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php \Drupal\Tests\block_content\Unit\Menu\BlockContentLocalTasksTest::testBlockContentListLocalTasks()

Checks block_content listing local tasks.

@dataProvider getBlockContentListingRoutes

File

core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php, line 63
Contains \Drupal\Tests\block_content\Unit\Menu\BlockContentLocalTasksTest.

Class

BlockContentLocalTasksTest
Tests existence of block_content local tasks.

Namespace

Drupal\Tests\block_content\Unit\Menu

Code

public function testBlockContentListLocalTasks($route) {
  $this
    ->assertLocalTasks($route, array(
    0 => array(
      'block.admin_display',
      'entity.block_content.collection',
    ),
    1 => array(
      'block_content.list_sub',
      'entity.block_content_type.collection',
    ),
  ));
}