You are here

public function UserLocalTasksTest::getUserAdminRoutes in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php \Drupal\Tests\user\Unit\Menu\UserLocalTasksTest::getUserAdminRoutes()

Provides a list of routes to test.

File

core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php, line 31

Class

UserLocalTasksTest
Tests user local tasks.

Namespace

Drupal\Tests\user\Unit\Menu

Code

public function getUserAdminRoutes() {
  return [
    [
      'entity.user.collection',
      [
        [
          'entity.user.collection',
          'user.admin_permissions',
          'entity.user_role.collection',
          'user.role.settings',
        ],
      ],
    ],
    [
      'user.admin_permissions',
      [
        [
          'entity.user.collection',
          'user.admin_permissions',
          'entity.user_role.collection',
          'user.role.settings',
        ],
      ],
    ],
    [
      'entity.user_role.collection',
      [
        [
          'entity.user.collection',
          'user.admin_permissions',
          'entity.user_role.collection',
          'user.role.settings',
        ],
      ],
    ],
    [
      'entity.user.admin_form',
      [
        [
          'user.account_settings_tab',
        ],
      ],
    ],
  ];
}