You are here

public function RenameAdminPathEventSubscriberTest::testRenameAdminPaths in Rename Admin Paths 8.2

File

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

Class

RenameAdminPathEventSubscriberTest
@group tests

Namespace

Drupal\Tests\rename_admin_paths\Unit\EventSubscriber

Code

public function testRenameAdminPaths() {
  $this
    ->assertRoutePaths([
    'admin_path' => TRUE,
    'admin_path_value' => 'backend',
    'user_path' => TRUE,
    'user_path_value' => 'member',
  ], [
    'home' => '/',
    'about' => '/about',
    'admin' => '/backend',
    'admin_slashed' => '/backend/',
    'admin_sub' => '/backend/sub',
    'admin_sub_sub' => '/backend/sub/sub',
    'admin_admin' => '/backend/admin',
    'admin_sub_admin' => '/backend/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',
    'users_sub' => '/users/sub',
  ]);
}