public function LocaleLocalTasksTest::testLocalePageLocalTasks in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Unit/Menu/LocaleLocalTasksTest.php \Drupal\Tests\locale\Unit\Menu\LocaleLocalTasksTest::testLocalePageLocalTasks()
- 9 core/modules/locale/tests/src/Unit/Menu/LocaleLocalTasksTest.php \Drupal\Tests\locale\Unit\Menu\LocaleLocalTasksTest::testLocalePageLocalTasks()
Checks locale listing local tasks.
@dataProvider getLocalePageRoutes
File
- core/
modules/ locale/ tests/ src/ Unit/ Menu/ LocaleLocalTasksTest.php, line 29
Class
- LocaleLocalTasksTest
- Tests locale local tasks.
Namespace
Drupal\Tests\locale\Unit\MenuCode
public function testLocalePageLocalTasks($route) {
$tasks = [
0 => [
'locale.translate_page',
'locale.translate_import',
'locale.translate_export',
'locale.settings',
],
];
$this
->assertLocalTasks($route, $tasks);
}