You are here

public function LocaleLocalTasksTest::testLocalePageLocalTasks in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 34
Contains \Drupal\Tests\locale\Unit\Menu\LocaleLocalTasksTest.

Class

LocaleLocalTasksTest
Tests locale local tasks.

Namespace

Drupal\Tests\locale\Unit\Menu

Code

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