AggregatorLocalTasksTest.php in Zircon Profile 8.0
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() {
$this->directoryList = array(
'aggregator' => 'core/modules/aggregator',
);
parent::setUp();
}
public function testAggregatorAdminLocalTasks($route) {
$this
->assertLocalTasks($route, array(
0 => array(
'aggregator.admin_overview',
'aggregator.admin_settings',
),
));
}
public function getAggregatorAdminRoutes() {
return array(
array(
'aggregator.admin_overview',
),
array(
'aggregator.admin_settings',
),
);
}
public function testAggregatorSourceLocalTasks($route) {
$this
->assertLocalTasks($route, array(
0 => array(
'entity.aggregator_feed.canonical',
'entity.aggregator_feed.edit_form',
'entity.aggregator_feed.delete_form',
),
));
}
public function getAggregatorSourceRoutes() {
return array(
array(
'entity.aggregator_feed.canonical',
),
array(
'entity.aggregator_feed.edit_form',
),
);
}
}