RolesRidArgumentTest.php in Zircon Profile 8.0
File
core/modules/user/src/Tests/Views/RolesRidArgumentTest.php
View source
<?php
namespace Drupal\user\Tests\Views;
class RolesRidArgumentTest extends UserTestBase {
public static $testViews = array(
'test_user_roles_rid',
);
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>');
}
}