$this->assertRaw(t('You cannot send more than %number messages in @interval. Try again later.',array('%number'=>$flood_limit,'@interval'=>format_interval(variable_get('contact_threshold_window',3600)))),'Normal user denied access to flooded contact form.');
// Test that the admin user can still access the contact form even though
// the flood limit was reached.
$this->drupalLogin($this->admin_user);
$this->assertNoText('Try again later.','Admin user not denied access to flooded contact form.');
}
/**
* Fills out a user's personal contact form and submits it.
*
* @param $account
* A user object of the user being contacted.
* @param $message
* An optional array with the form fields being used.
$this->assertRaw(t('You cannot send more than %number messages in @interval. Try again later.',array('%number'=>$flood_limit,'@interval'=>format_interval(variable_get('contact_threshold_window',3600)))),'Normal user denied access to flooded contact form.');
// Test that the admin user can still access the contact form even though
// the flood limit was reached.
$this->drupalLogin($this->admin_user);
$this->assertNoText('Try again later.','Admin user not denied access to flooded contact form.');
}
/**
* Fills out a user's personal contact form and submits it.
*
* @param $account
* A user object of the user being contacted.
* @param $message
* An optional array with the form fields being used.