public function Anonymouspublishingtest::setUp in Anonymous Publishing 7
Set up tests. Use testing mail system.
Overrides DrupalWebTestCase::setUp
File
- tests/
anonymous_publishing.test, line 23
Class
- Anonymouspublishingtest
- Tests for the Anonymous Publishing modules.
Code
public function setUp() {
parent::setUp(array(
'blog',
'anonymous_publishing',
'anonymous_publishing_cl',
));
variable_set('mail_system', array(
'default-system' => 'TestingMailSystem',
));
variable_set('anonymous_publishing_cl_types', array(
'blog' => 'blog',
'comment' => 'comment',
));
variable_set('anonymous_publishing_cl_options', array(
'sactivate' => 'sactivate',
'modmail' => 0,
'blockip' => 0,
'aregist' => 0,
));
variable_set('anonymous_publishing_cl_vrfypers', 0);
variable_set('anonymous_publishing_cl_alias', 0);
variable_set('anonymous_publishing_cl_flood', -1);
}