You are here

public function RenameAdminPathEventSubscriberTest::testRenameUserPath in Rename Admin Paths 8.2

File

tests/src/Unit/EventSubscriber/RenameAdminPathEventSubscriberTest.php, line 79

Class

RenameAdminPathEventSubscriberTest
@group tests

Namespace

Drupal\Tests\rename_admin_paths\Unit\EventSubscriber

Code

public function testRenameUserPath() {
  $this
    ->assertRoutePaths([
    'user_path' => TRUE,
    'user_path_value' => 'member',
  ], [
    'home' => '/',
    'about' => '/about',
    'admin' => '/admin',
    'admin_slashed' => '/admin/',
    'admin_sub' => '/admin/sub',
    'admin_sub_sub' => '/admin/sub/sub',
    'admin_admin' => '/admin/admin',
    'admin_sub_admin' => '/admin/sub/admin',
    'admins' => '/admins',
    'admins_sub' => '/admins/sub',
    'user' => '/member',
    'user_slashed' => '/member/',
    'user_sub' => '/member/sub',
    'user_sub_sub' => '/member/sub/sub',
    'user_admin' => '/member/user',
    'user_sub_admin' => '/member/sub/user',
    'users' => '/users',
  ]);
}