function PageExampleTestCase::pageExampleVerifyNoAccess in Examples for Developers 6
Same name and namespace in other branches
- 7 page_example/page_example.test \PageExampleTestCase::pageExampleVerifyNoAccess()
Verify that current user has no access to page.
Parameters
$url: URL to verify.
1 call to PageExampleTestCase::pageExampleVerifyNoAccess()
- PageExampleTestCase::testPageExampleBasic in page_example/
page_example.test - Login user, create an example node, and test blog functionality through the admin and user interfaces.
File
- page_example/
page_example.test, line 51 - Test case for Testing the page example module.
Class
- PageExampleTestCase
- @file Test case for Testing the page example module.
Code
function pageExampleVerifyNoAccess($url) {
// Test that page returns 403 Access Denied
$this
->drupalGet($url);
$this
->assertResponse(403);
}