function LegalRegister::testRegisterUnsuccessful in Legal 6.7
* Don't accept T&C no account created
File
- tests/
register.test, line 45
Class
- LegalRegister
- Register as new user and create account.
Code
function testRegisterUnsuccessful() {
/* Prepare a user to do testing */
$name = $this
->randomName();
$mail = "{$name}@example.com";
$edit = array(
'name' => $name,
'mail' => $mail,
);
$this
->drupalPost('user/register', $edit, 'Create new account');
/* Check account was created */
$this
->assertText(t('Terms & Conditions must be accepted.'), ' [post] T&C not accepted, account not created');
// /* Check Invoice was created */
}