You are here

function FaqTestCase::faqVerifyNoAccess in Frequently Asked Questions 6

Same name and namespace in other branches
  1. 7.2 faq.test \FaqTestCase::faqVerifyNoAccess()
  2. 7 faq.test \FaqTestCase::faqVerifyNoAccess()

Verify that current user has no access to page.

Parameters

$url: URL to verify.

1 call to FaqTestCase::faqVerifyNoAccess()
FaqAccessTestClass::testFaqAccess in ./faq.test

File

./faq.test, line 84
Test FAQ functionality Base test class. All tests inherits this one. Hugely based on code from the test file block.test by boombatower

Class

FaqTestCase
Base class that is extended by test cases.

Code

function faqVerifyNoAccess($url) {

  // Test that page returns 403 Access Denied
  $this
    ->drupalGet($url);
  $this
    ->assertResponse(403);
}