RolesRidArgumentTest.php in Drupal 8
File
core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php
View source
<?php
namespace Drupal\Tests\user\Functional\Views;
class RolesRidArgumentTest extends UserTestBase {
public static $testViews = [
'test_user_roles_rid',
];
protected $defaultTheme = 'stark';
public function testArgumentTitle() {
$role_id = $this
->createRole([], 'markup_role_name', '<em>Role name with markup</em>');
$user = $this
->createUser();
$user
->addRole($role_id);
$user
->save();
$this
->drupalGet('/user_roles_rid_test/markup_role_name');
$this
->assertEscaped('<em>Role name with markup</em>');
}
}