public function PermissionsLockUnrestrictedTestCase::testUnrestrictedPermission in Permissions Lock 8
File
- src/
Tests/ PermissionsLockUnrestrictedTestCase.php, line 45
Class
- PermissionsLockUnrestrictedTestCase
- Tests for unrestricted users
Namespace
Drupal\permissions_lock\TestsCode
public function testUnrestrictedPermission() {
// 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('Use the site in maintenance mode'));
}