protected $defaultTheme = 'stark';
/**
* Tests the generated title of a user: roles argument.
*/
public function testArgumentTitle() { $role_id =
$this->
createRole([], 'markup_role_name', '<em>Role name with markup</em>'
);
$this->
createRole([], 'second_role_name', 'Second role name'
);
$user =
$this->
createUser([], 'User with role one'
);
$user->
addRole($role_id);
$user->
save();
$second_user =
$this->
createUser([], 'User with role two'
);
$second_user->
addRole('second_role_name'
);
$second_user->
save();
$this->
drupalGet('/user_roles_rid_test/markup_role_name'
);
$this->
assertSession()->
assertEscaped('<em>Role name with markup</em>'
);
$views_user =
$this->
drupalCreateUser(['administer views'
]);
$this->
drupalLogin($views_user);