public function CacheFlushUICRUDAccessTest::testAccessAnonymous in CacheFlush 7.3
Test the access for user with no permissions.
File
- modules/
cacheflush_ui/ cacheflush_ui.test, line 334 - Contains test suite for cacheflush ui module.
Class
- CacheFlushUICRUDAccessTest
- Defines a test for cacheflush ui module CRUD access.
Code
public function testAccessAnonymous() {
// 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(str_replace("[ID]", 1, $this->urls['view']), 403);
$this
->cacheflushUrlAccess(str_replace("[ID]", 1, $this->urls['edit']), 403);
$this
->cacheflushUrlAccess(str_replace("[ID]", 1, $this->urls['delete']), 403);
}