public function ProtectedNodeMail::setUp in Protected Node 7
Same name and namespace in other branches
- 1.0.x tests/protected_node.mail_test.test \ProtectedNodeMail::setUp()
Prepare users for protected node's tests.
Overrides ProtectedNodeBaseTestCase::setUp
File
- tests/
protected_node.mail_test.test, line 27 - Test protected node email functionality.
Class
- ProtectedNodeMail
- Configure protected_node to send email.
Code
public function setUp() {
parent::setUp();
// Log in an Admin.
$this
->drupalLogin($this->adminUser);
// Submit the configuration form.
$protected_node_settings = array(
'protected_node_use_global_password' => PROTECTED_NODE_PER_NODE_PASSWORD,
'protected_node_email_activation' => 1,
'protected_node_random_password' => 1,
);
$this
->drupalPost('admin/config/content/protected_node', $protected_node_settings, t('Save configuration'));
}