public function UserLocalTasksTest::testUserPageLocalTasks in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest::testUserPageLocalTasks()
Checks user listing local tasks.
@dataProvider getUserPageRoutes
File
- core/
modules/ user/ tests/ src/ Unit/ Menu/ UserLocalTasksTest.php, line 73 - Contains \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest.
Class
- UserLocalTasksTest
- Tests user local tasks.
Namespace
Drupal\Tests\user\Unit\MenuCode
public function testUserPageLocalTasks($route, $subtask = array()) {
$tasks = array(
0 => array(
'entity.user.canonical',
'entity.user.edit_form',
),
);
if ($subtask) {
$tasks[] = $subtask;
}
$this
->assertLocalTasks($route, $tasks);
}