protected function AgreementTestCase::submitAgreementFormWithAgreeing in Agreement 6
Same name and namespace in other branches
- 6.2 agreement.test \AgreementTestCase::submitAgreementFormWithAgreeing()
- 7.2 agreement.test \AgreementTestCase::submitAgreementFormWithAgreeing()
3 calls to AgreementTestCase::submitAgreementFormWithAgreeing()
File
- ./
agreement.test, line 87 - Tests for the Agreement module
Class
- AgreementTestCase
- @file Tests for the Agreement module
Code
protected function submitAgreementFormWithAgreeing($uid) {
// Submit with checking the I agree box
$field_values['agree'] = '1';
$this
->drupalPost('agreement', $field_values, variable_get('agreement_submit_text', $this->not_set));
$this
->assertText(variable_get('agreement_message_success', $this->not_set), t('Correct success message'));
$this
->isNotAgreementPage();
}