LanguageLocalTasksTest.php in Drupal 10
File
core/modules/language/tests/src/Unit/Menu/LanguageLocalTasksTest.php
View source
<?php
namespace Drupal\Tests\language\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
class LanguageLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() : void {
$this->directoryList = [
'language' => 'core/modules/language',
];
parent::setUp();
}
public function testLanguageAdminLocalTasks($route, $expected) {
$this
->assertLocalTasks($route, $expected);
}
public function getLanguageAdminOverviewRoutes() {
return [
[
'entity.configurable_language.collection',
[
[
'entity.configurable_language.collection',
'language.negotiation',
],
],
],
[
'language.negotiation',
[
[
'entity.configurable_language.collection',
'language.negotiation',
],
],
],
];
}
public function testLanguageEditLocalTasks() {
$this
->assertLocalTasks('entity.configurable_language.edit_form', [
0 => [
'entity.configurable_language.edit_form',
],
]);
}
}