function FaqAskTestCase::turnUnansQestBlockOn in FAQ_Ask 6.2
Local function to switch the Block containing unanswered questions On
1 call to FaqAskTestCase::turnUnansQestBlockOn()
File
- ./
faq_ask.test, line 227 - 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 turnUnansQestBlockOn() {
$this
->drupalLogin($this->admin_user);
$this
->drupalPost('admin/build/block/configure/faq_ask/0', array(
'visibility' => '0',
), t('Save block'));
$this
->drupalPost('admin/build/block/', array(
'faq_ask_0[region]' => 'left',
), t('Save blocks'));
$this
->drupalLogout();
}