public function CacheFlushUICRUDAccessTest::accessAnonymous in CacheFlush 8
Test the access for user with no permissions.
1 call to CacheFlushUICRUDAccessTest::accessAnonymous()
- CacheFlushUICRUDAccessTest::testAccess in modules/
cacheflush_ui/ tests/ src/ Functional/ CacheFlushUICRUDAccessTest.php - Run CRUD access test functions.
File
- modules/
cacheflush_ui/ tests/ src/ Functional/ CacheFlushUICRUDAccessTest.php, line 155
Class
- CacheFlushUICRUDAccessTest
- Test cacheflush UI access on links and interface.
Namespace
Drupal\cacheflush_ui\TestsCode
public function accessAnonymous() {
// Access to administration page.
$this
->cacheflushUrlAccess($this->urls['admin'], 403);
// Access to new entity create.
$this
->cacheflushUrlAccess($this->urls['new'], 403);
// Access to cache clear.
$this
->cacheflushUrlAccess($this->urls['clear'] . '1', 403);
$this
->cacheflushUrlAccess($this->urls['clear'] . '2', 403);
// Access to CRUD.
$this
->cacheflushUrlAccess($this->urls['view'] . '1', 403);
$this
->cacheflushUrlAccess(str_replace("[ID]", 1, $this->urls['edit']), 403);
$this
->cacheflushUrlAccess(str_replace("[ID]", 1, $this->urls['delete']), 403);
}