UpdateLocalTasksTest.php in Drupal 10
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() : void {
$this->directoryList = [
'update' => 'core/modules/update',
];
parent::setUp();
}
public function testUpdateReportLocalTasks($route) {
$this
->assertLocalTasks($route, [
0 => [
'update.status',
'update.settings',
'update.report_update',
],
]);
}
public function getUpdateReportRoutes() {
return [
[
'update.status',
],
[
'update.settings',
],
[
'update.report_update',
],
];
}
public function testUpdateModuleLocalTasks($route) {
$this
->assertLocalTasks($route, [
0 => [
'update.module_update',
],
]);
}
public function getUpdateModuleRoutes() {
return [
[
'update.module_update',
],
];
}
public function testUpdateThemeLocalTasks($route) {
$this
->assertLocalTasks($route, [
0 => [
'update.theme_update',
],
]);
}
public function getUpdateThemeRoutes() {
return [
[
'update.theme_update',
],
];
}
}