You are here

function FaqTestCase::faqVerifyNoAccess in Frequently Asked Questions 7

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

Verify that current user has no access to page.

Parameters

$url: URL to verify.

3 calls to FaqTestCase::faqVerifyNoAccess()
CRAUDFaqTestCase::testFaqCreate in ./faq.test
Test creating an FAQ and verify its status
CreateFaqTestCase::testFaqCreate in ./faq.test
Test creating a FAQ node
FaqAccessTestClass::testFaqAccess in ./faq.test

File

./faq.test, line 90
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);
}