You are here

public function ShortcutLocalTasksTest::testShortcutPageLocalTasks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::testShortcutPageLocalTasks()

Checks shortcut listing local tasks.

@dataProvider getShortcutPageRoutes

File

core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php, line 32
Contains \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest.

Class

ShortcutLocalTasksTest
Tests existence of shortcut local tasks.

Namespace

Drupal\Tests\shortcut\Unit\Menu

Code

public function testShortcutPageLocalTasks($route) {
  $tasks = array(
    0 => array(
      'shortcut.set_switch',
      'entity.user.canonical',
      'entity.user.edit_form',
    ),
  );
  $this
    ->assertLocalTasks($route, $tasks);
}