public function OptimizelyAccessTest::testUserNoPermission in Optimizely 8
Same name and namespace in other branches
- 8.3 src/Tests/OptimizelyAccessTest.php \Drupal\optimizely\Tests\OptimizelyAccessTest::testUserNoPermission()
- 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\TestsCode
public function testUserNoPermission() {
$this
->checkNoAccess($this->noPermissionsUser);
$this
->checkNoAccess($this->somePermissionsUser);
}