UpdateLocalTasksTest.php in Zircon Profile 8
File
core/modules/update/tests/src/Unit/Menu/UpdateLocalTasksTest.php
View source
<?php
namespace Drupal\Tests\update\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
class UpdateLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() {
$this->directoryList = array(
'update' => 'core/modules/update',
);
parent::setUp();
}
public function testUpdateReportLocalTasks($route) {
$this
->assertLocalTasks($route, array(
0 => array(
'update.status',
'update.settings',
'update.report_update',
),
));
}
public function getUpdateReportRoutes() {
return array(
array(
'update.status',
),
array(
'update.settings',
),
array(
'update.report_update',
),
);
}
public function testUpdateModuleLocalTasks($route) {
$this
->assertLocalTasks($route, array(
0 => array(
'update.module_update',
),
));
}
public function getUpdateModuleRoutes() {
return array(
array(
'update.module_update',
),
);
}
public function testUpdateThemeLocalTasks($route) {
$this
->assertLocalTasks($route, array(
0 => array(
'update.theme_update',
),
));
}
public function getUpdateThemeRoutes() {
return array(
array(
'update.theme_update',
),
);
}
}