You are here

public function CacheFlushTest::testMenuAccessAnonymusUser in CacheFlush 7.3

Check menus access.

File

./cacheflush.test, line 56
Contains test suite for cacheflush module.

Class

CacheFlushTest
Defines a test for cacheflush module.

Code

public function testMenuAccessAnonymusUser() {

  // Check access of the menus - access denied expected - Anonymus user.
  $this
    ->drupalGet('admin/cacheflush');
  $this
    ->assertResponse(403);
  $this
    ->drupalGet('admin/cacheflush/clearall');
  $this
    ->assertResponse(403);
  $this
    ->drupalGet('admin/cacheflush/1');
  $this
    ->assertResponse(403);
}