function LocaleLocalTasksTest::testLocalePageLocalTasks

Checks locale listing local tasks.

@dataProvider getLocalePageRoutes

File

core/modules/locale/tests/src/Unit/Menu/LocaleLocalTasksTest.php, line 31

Class

LocaleLocalTasksTest
Tests locale local tasks.

Namespace

Drupal\Tests\locale\Unit\Menu

Code

public function testLocalePageLocalTasks($route) : void {
  $tasks = [
    0 => [
      'locale.translate_page',
      'locale.translate_import',
      'locale.translate_export',
      'locale.settings',
    ],
  ];
  $this->assertLocalTasks($route, $tasks);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.