function UserLocalTasksTest::testUserLoginLocalTasks
Same name in other branches
- 8.9.x core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest::testUserLoginLocalTasks()
- 10 core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest::testUserLoginLocalTasks()
- 11.x core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest::testUserLoginLocalTasks()
Checks user listing local tasks.
@dataProvider getUserLoginRoutes
File
-
core/
modules/ user/ tests/ src/ Unit/ Menu/ UserLocalTasksTest.php, line 57
Class
- UserLocalTasksTest
- Tests user local tasks.
Namespace
Drupal\Tests\user\Unit\MenuCode
public function testUserLoginLocalTasks($route) {
$tasks = [
0 => [
'user.register',
'user.pass',
'user.login',
],
];
$this->assertLocalTasks($route, $tasks);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.