You are here

public function CacheFlushUICRUDAccessTest::cacheflushUrlAccess in CacheFlush 8

Check access of URL.

Parameters

string $url: URL to check access.

int $code: HTTP response.

3 calls to CacheFlushUICRUDAccessTest::cacheflushUrlAccess()
CacheFlushUICRUDAccessTest::accessAdmin in modules/cacheflush_ui/tests/src/Functional/CacheFlushUICRUDAccessTest.php
Test the access for user with permissions to all content (full CRUD).
CacheFlushUICRUDAccessTest::accessAnonymous in modules/cacheflush_ui/tests/src/Functional/CacheFlushUICRUDAccessTest.php
Test the access for user with no permissions.
CacheFlushUICRUDAccessTest::accessLogged in modules/cacheflush_ui/tests/src/Functional/CacheFlushUICRUDAccessTest.php
Test the access for user with permissions for own content.

File

modules/cacheflush_ui/tests/src/Functional/CacheFlushUICRUDAccessTest.php, line 285

Class

CacheFlushUICRUDAccessTest
Test cacheflush UI access on links and interface.

Namespace

Drupal\cacheflush_ui\Tests

Code

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