You are here

public function ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()
  2. 10 core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()

Provides a list of routes to test.

File

core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php, line 50

Class

ContentTranslationLocalTasksTest
Tests content translation local tasks.

Namespace

Drupal\Tests\content_translation\Unit\Menu

Code

public function providerTestBlockAdminDisplay() {
  return [
    [
      'entity.node.canonical',
      [
        [
          'content_translation.local_tasks:entity.node.content_translation_overview',
          'entity.node.canonical',
          'entity.node.edit_form',
          'entity.node.delete_form',
          'entity.node.version_history',
        ],
      ],
    ],
    [
      'entity.node.content_translation_overview',
      [
        [
          'content_translation.local_tasks:entity.node.content_translation_overview',
          'entity.node.canonical',
          'entity.node.edit_form',
          'entity.node.delete_form',
          'entity.node.version_history',
        ],
      ],
    ],
  ];
}