public function ShortcutLocalTasksTest::testShortcutPageLocalTasks in Drupal 8
Same name and namespace in other branches
- 9 core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::testShortcutPageLocalTasks()
- 10 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 27
Class
- ShortcutLocalTasksTest
- Tests existence of shortcut local tasks.
Namespace
Drupal\Tests\shortcut\Unit\MenuCode
public function testShortcutPageLocalTasks($route) {
$tasks = [
0 => [
'shortcut.set_switch',
'entity.user.canonical',
'entity.user.edit_form',
],
];
$this
->assertLocalTasks($route, $tasks);
}