You are here

function FaqAskTestCase::faqAskVerifyNoAccess in FAQ_Ask 6.2

Verify that current user has no access to page.

Parameters

$url: URL to verify.

1 call to FaqAskTestCase::faqAskVerifyNoAccess()
FaqAskAccessTestClass::testFaqAskAccess in ./faq_ask.test

File

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

Class

FaqAskTestCase
Base class that is extended by test cases.

Code

function faqAskVerifyNoAccess($url) {

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