You are here

public function OptimizelyAccessTest::testUserNoPermission in Optimizely 8

Same name and namespace in other branches
  1. 8.3 src/Tests/OptimizelyAccessTest.php \Drupal\optimizely\Tests\OptimizelyAccessTest::testUserNoPermission()
  2. 8.0 src/Tests/OptimizelyAccessTest.php \Drupal\optimizely\Tests\OptimizelyAccessTest::testUserNoPermission()

Test access to module functionality by users without permission.

File

src/Tests/OptimizelyAccessTest.php, line 92

Class

OptimizelyAccessTest
Create users with no, some, and optimizely permissions.

Namespace

Drupal\optimizely\Tests

Code

public function testUserNoPermission() {
  $this
    ->checkNoAccess($this->noPermissionsUser);
  $this
    ->checkNoAccess($this->somePermissionsUser);
}