function BlockContentLocalTasksTest::testBlockContentListLocalTasks
Same name in other branches
- 8.9.x core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php \Drupal\Tests\block_content\Unit\Menu\BlockContentLocalTasksTest::testBlockContentListLocalTasks()
- 10 core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php \Drupal\Tests\block_content\Unit\Menu\BlockContentLocalTasksTest::testBlockContentListLocalTasks()
- 11.x 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 61
Class
- BlockContentLocalTasksTest
- Tests existence of block_content local tasks.
Namespace
Drupal\Tests\block_content\Unit\MenuCode
public function testBlockContentListLocalTasks($route) {
$this->assertLocalTasks($route, [
0 => [
'block.admin_display',
'entity.block_content.collection',
],
1 => [
'block_content.list_sub',
'entity.block_content_type.collection',
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.