public function DomainRegistrationTest::testDenyExactMatch in Restrict Domain Registration 7
File
- ./domain_registration.test, line 78
- Tests for the Domain Registration Module
Class
- DomainRegistrationTest
- @file
Tests for the Domain Registration Module
Code
public function testDenyExactMatch() {
variable_set('domain_registration', 'example.com');
variable_set('domain_registration_method', DOMAIN_REGISTRATION_DENY);
$edit = array(
'name' => $this
->randomName(),
'mail' => $this
->randomName() . '@example.com',
);
$this
->drupalPost('user/register', $edit, t('Create new account'));
$this
->assertText(t('You are not allowed to register for this site.'), t('User was successfully denied registration.'));
}