public function RenameAdminPathEventSubscriberTest::testRenameAdminPath in Rename Admin Paths 8.2
File
- tests/
src/ Unit/ EventSubscriber/ RenameAdminPathEventSubscriberTest.php, line 50
Class
- RenameAdminPathEventSubscriberTest
- @group tests
Namespace
Drupal\Tests\rename_admin_paths\Unit\EventSubscriberCode
public function testRenameAdminPath() {
$this
->assertRoutePaths([
'admin_path' => TRUE,
'admin_path_value' => 'backend',
], [
'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' => '/user',
'user_slashed' => '/user/',
'user_sub' => '/user/sub',
'user_sub_sub' => '/user/sub/sub',
'user_admin' => '/user/user',
'user_sub_admin' => '/user/sub/user',
'users' => '/users',
'users_sub' => '/users/sub',
]);
}