$this->drupalPost('user/register',$edit,t('Create new account'));
// Form should have error message.
$this->assertText(t('There was a problem with your form submission. Please refresh the page and try again.'),'Registration form protected by honeypot.');
}
publicfunctiontestProtectRegisterUserTooFast(){
// Enable time limit for honeypot.
variable_set('honeypot_time_limit',5);
// Set up form and submit it.
$edit['name']=$this->randomName();
$edit['mail']=$edit['name'].'@example.com';
$this->drupalPost('user/register',$edit,t('Create new account'));
// Form should have error message.
$this->assertText(t('There was a problem with your form submission. Please wait'),'Registration form protected by time limit.');