public function PageExampleTestCase::pageExampleVerifyNoAccess in Examples for Developers 7
Same name and namespace in other branches
- 6 page_example/page_example.test \PageExampleTestCase::pageExampleVerifyNoAccess()
Verify that current user has no access to page.
Parameters
string $url: URL to verify.
1 call to PageExampleTestCase::pageExampleVerifyNoAccess()
- PageExampleTestCase::testPageExampleBasic in page_example/
page_example.test - Functional test for various page types.
File
- page_example/
page_example.test, line 60 - 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
->drupalGet($url);
$this
->assertResponse(403);
}