public function RoleAssignTest::testRoleDelegationEntityOperationAccess in Role Delegation 8
Test access to the "Roles" entity operation.
File
- tests/
src/ Functional/ RoleAssignTest.php, line 197
Class
- RoleAssignTest
- Functional tests for assigning roles.
Namespace
Drupal\Tests\role_delegation\FunctionalCode
public function testRoleDelegationEntityOperationAccess() {
// Make sure the entity operation is only added to users.
$node = $this
->drupalCreateNode();
$this
->drupalGet('/admin/content');
$this
->assertSession()
->linkByHrefNotExists(sprintf('/user/%s/roles', $node
->id()));
}