You are here

public function CacheFlushUICRUDAccessTest::cacheflushUrlAccess in CacheFlush 7.3

Check access of URL.

Parameters

string $url: URL to check access.

int $code: HTTP response.

3 calls to CacheFlushUICRUDAccessTest::cacheflushUrlAccess()
CacheFlushUICRUDAccessTest::testAccessAdmin in modules/cacheflush_ui/cacheflush_ui.test
Test the access for user with permissions to all content (full CRUD).
CacheFlushUICRUDAccessTest::testAccessAnonymous in modules/cacheflush_ui/cacheflush_ui.test
Test the access for user with no permissions.
CacheFlushUICRUDAccessTest::testAccessLogged in modules/cacheflush_ui/cacheflush_ui.test
Test the access for user with permissions for own content.

File

modules/cacheflush_ui/cacheflush_ui.test, line 461
Contains test suite for cacheflush ui module.

Class

CacheFlushUICRUDAccessTest
Defines a test for cacheflush ui module CRUD access.

Code

public function cacheflushUrlAccess($url, $code) {
  $this
    ->drupalGet($url);
  $this
    ->assertResponse($code);
}