AggregatorLocalTasksTest.php in Drupal 9
File
core/modules/aggregator/tests/src/Unit/Menu/AggregatorLocalTasksTest.php
View source
<?php
namespace Drupal\Tests\aggregator\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
class AggregatorLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() : void {
$this->directoryList = [
'aggregator' => 'core/modules/aggregator',
];
parent::setUp();
}
public function testAggregatorAdminLocalTasks($route) {
$this
->assertLocalTasks($route, [
0 => [
'aggregator.admin_overview',
'aggregator.admin_settings',
],
]);
}
public function getAggregatorAdminRoutes() {
return [
[
'aggregator.admin_overview',
],
[
'aggregator.admin_settings',
],
];
}
public function testAggregatorSourceLocalTasks($route) {
$this
->assertLocalTasks($route, [
0 => [
'entity.aggregator_feed.canonical',
'entity.aggregator_feed.edit_form',
'entity.aggregator_feed.delete_form',
],
]);
}
public function getAggregatorSourceRoutes() {
return [
[
'entity.aggregator_feed.canonical',
],
[
'entity.aggregator_feed.edit_form',
],
];
}
}