public function UserRegistrationPasswordAdminApprovalTestCase::testRegistrationWithAdminApprovalEmailVerificationAndPassword in User registration password 7
Implements testRegistrationWithAdminApprovalEmailVerificationAndPassword().
File
- tests/
user_registrationpassword_admin_approval.test, line 40 - Functionality tests for user_registrationpassword.module.
Class
- UserRegistrationPasswordAdminApprovalTestCase
- Class UserRegistrationPasswordAdminApprovalTestCase.
Code
public function testRegistrationWithAdminApprovalEmailVerificationAndPassword() {
// Set variables like they would be set via configuration form.
variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
variable_set('user_email_verification', TRUE);
variable_set('user_mail_register_pending_approval_notify', TRUE);
variable_set('user_registrationpassword_registration', USER_REGISTRATIONPASSWORD_VERIFICATION_PASS);
$this
->drupalGet('user/register');
$this
->assertRaw('edit-pass-pass1', 'Password field found.');
}