You are here

public function PermissionsLockRestrictedTestCase::testRestrictedRole in Permissions Lock 8

File

src/Tests/PermissionsLockRestrictedTestCase.php, line 55

Class

PermissionsLockRestrictedTestCase
Tests for restricted users

Namespace

Drupal\permissions_lock\Tests

Code

public function testRestrictedRole() {

  // go to the permissions administration page
  $this
    ->drupalGet('admin/people/permissions');

  // make sure we are on the administration page
  $this
    ->assertResponse(200, t('User has access to the administration page'));

  // check if the defined permissions are locked
  $this
    ->assertNoText(t('authenticated user'));
}