public function CaptchaAfterPerFormThresholdTestCase::setUp in CAPTCHA After 6
Same name and namespace in other branches
- 7 captcha_after.test \CaptchaAfterPerFormThresholdTestCase::setUp()
setUp() performs any pre-requisite tasks that need to happen.
Overrides DrupalWebTestCase::setUp
File
- ./
captcha_after.test, line 249 - Captcha After tests.
Class
- CaptchaAfterPerFormThresholdTestCase
- Global threshold tests for the CAPTCHA After module.
Code
public function setUp() {
// Enable any modules required for the test.
parent::setUp('captcha', 'captcha_after');
// So we can reuse CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE constant.
module_load_include('test', 'captcha');
// Create our test users.
$this->test_user = $this
->drupalCreateUser(array(
'create page content',
));
//$this->test_user1 = $this->drupalCreateUser(array('create page content'));
}