1 page_example.test public PageExampleTestCase::pageExampleVerifyNoAccess($url)

Verify that current user has no access to page.

Parameters

string $url: URL to verify.

File

modules/examples/page_example/page_example.test, line 49
Test case for Testing the page example module.

Class

PageExampleTestCase
Functional tests for the Page Example module.

Code

public function pageExampleVerifyNoAccess($url) {
  // Test that page returns 403 Access Denied.
  $this->backdropGet($url);
  $this->assertResponse(403);
}