function Faq_AskTestCase::faqVerifyNoAccess in FAQ_Ask 7
Verify that current user has no access to page.
Parameters
$url: URL to verify.
4 calls to Faq_AskTestCase::faqVerifyNoAccess()
- BlockFaq_AskTestCase::testAskQuestionBlock in ./
faq_ask.test - Ask a question via the block Does this: 1. Changes the block title on the ask a question block 2. Swithes it on 3. Posts a question via the block form using an asker user 4. Turns unanswered block off 5. Verifies question visibility to the answer…
- CRAUDFaq_AskTestCase::testFaq_AskCreate in ./
faq_ask.test - Test creating an unanswered FAQ and verify its status Also switches on notifcation of asker and verifies that anonymous are sent an e-mail by cron run
- CreateFaq_AskTestCase::testFaqCreate in ./
faq_ask.test - Test creating a FAQ node
- Faq_AskAccessTestClass::testFaqAccess in ./
faq_ask.test
File
- ./
faq_ask.test, line 175 - Test Faq_Ask functionality Base test class. All tests inherits this one Hugely based on code from the test file block.test by boombatower
Class
- Faq_AskTestCase
- 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);
}