public function PermissionsLockUnrestrictedTestCase::testUnrestrictedRole in Permissions Lock 8
File
- src/
Tests/ PermissionsLockUnrestrictedTestCase.php, line 56
Class
- PermissionsLockUnrestrictedTestCase
- Tests for unrestricted users
Namespace
Drupal\permissions_lock\TestsCode
public function testUnrestrictedRole() {
// go to the permissions administration page
$this
->drupalGet('admin/people/permissions');
// make sure we are on the administration page
$this
->assertResponse(200, $this
->t('User has access to the administration page'));
// check if the defined permissions are locked
$this
->assertText(t('authenticated user'));
}