You are here

public function UserLocalTasksTest::testUserLoginLocalTasks in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest::testUserLoginLocalTasks()
  2. 9 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 54

Class

UserLocalTasksTest
Tests user local tasks.

Namespace

Drupal\Tests\user\Unit\Menu

Code

public function testUserLoginLocalTasks($route) {
  $tasks = [
    0 => [
      'user.register',
      'user.pass',
      'user.login',
    ],
  ];
  $this
    ->assertLocalTasks($route, $tasks);
}