3 namespace Drupal\Tests\taxonomy\Unit\Menu;
5 use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
8 * Tests existence of taxonomy local tasks.
12 class TaxonomyLocalTasksTest extends LocalTaskIntegrationTestBase {
14 protected function setUp() {
15 $this->directoryList = ['taxonomy' => 'core/modules/taxonomy'];
20 * Checks taxonomy edit local tasks.
22 * @dataProvider getTaxonomyPageRoutes
24 public function testTaxonomyPageLocalTasks($route, $subtask = []) {
26 0 => ['entity.taxonomy_term.canonical', 'entity.taxonomy_term.edit_form'],
31 $this->assertLocalTasks($route, $tasks);
35 * Provides a list of routes to test.
37 public function getTaxonomyPageRoutes() {
39 ['entity.taxonomy_term.canonical'],
40 ['entity.taxonomy_term.edit_form'],