3 namespace Drupal\Tests\aggregator\Unit\Menu;
5 use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
8 * Tests existence of aggregator local tasks.
12 class AggregatorLocalTasksTest extends LocalTaskIntegrationTestBase {
17 protected function setUp() {
18 $this->directoryList = ['aggregator' => 'core/modules/aggregator'];
23 * Tests local task existence.
25 * @dataProvider getAggregatorAdminRoutes
27 public function testAggregatorAdminLocalTasks($route) {
28 $this->assertLocalTasks($route, [
29 0 => ['aggregator.admin_overview', 'aggregator.admin_settings'],
34 * Provides a list of routes to test.
36 public function getAggregatorAdminRoutes() {
38 ['aggregator.admin_overview'],
39 ['aggregator.admin_settings'],
44 * Checks aggregator source tasks.
46 * @dataProvider getAggregatorSourceRoutes
48 public function testAggregatorSourceLocalTasks($route) {
49 $this->assertLocalTasks($route, [
50 0 => ['entity.aggregator_feed.canonical', 'entity.aggregator_feed.edit_form', 'entity.aggregator_feed.delete_form'],
56 * Provides a list of source routes to test.
58 public function getAggregatorSourceRoutes() {
60 ['entity.aggregator_feed.canonical'],
61 ['entity.aggregator_feed.edit_form'],