function TaxonomyLocalTasksTest::testTaxonomyPageLocalTasks
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Unit/Menu/TaxonomyLocalTasksTest.php \Drupal\Tests\taxonomy\Unit\Menu\TaxonomyLocalTasksTest::testTaxonomyPageLocalTasks()
- 8.9.x core/modules/taxonomy/tests/src/Unit/Menu/TaxonomyLocalTasksTest.php \Drupal\Tests\taxonomy\Unit\Menu\TaxonomyLocalTasksTest::testTaxonomyPageLocalTasks()
- 11.x core/modules/taxonomy/tests/src/Unit/Menu/TaxonomyLocalTasksTest.php \Drupal\Tests\taxonomy\Unit\Menu\TaxonomyLocalTasksTest::testTaxonomyPageLocalTasks()
Checks taxonomy edit local tasks.
@dataProvider getTaxonomyPageRoutes
File
-
core/
modules/ taxonomy/ tests/ src/ Unit/ Menu/ TaxonomyLocalTasksTest.php, line 29
Class
- TaxonomyLocalTasksTest
- Tests existence of taxonomy local tasks.
Namespace
Drupal\Tests\taxonomy\Unit\MenuCode
public function testTaxonomyPageLocalTasks($route, $subtask = []) : void {
$tasks = [
0 => [
'entity.taxonomy_term.canonical',
'entity.taxonomy_term.edit_form',
'entity.taxonomy_term.delete_form',
],
];
if ($subtask) {
$tasks[] = $subtask;
}
$this->assertLocalTasks($route, $tasks);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.