protected function AgreementRevokeTestCase::submitAgreementFormWithRevoking in Agreement 7.2
Submits agreement form using the Revoke button.
1 call to AgreementRevokeTestCase::submitAgreementFormWithRevoking()
- AgreementRevokeTestCase::testAgreement in ./
agreement.test - Asserts that a user that has agreed can revoke the agreement.
File
- ./
agreement.test, line 602 - Tests for Agreement module.
Class
- AgreementRevokeTestCase
- Tests revoke agreement functionality.
Code
protected function submitAgreementFormWithRevoking() {
// Submit with checking the I agree box.
$field_values['agree'] = FALSE;
$this
->drupalPost('agreement', $field_values, $this->agreement['settings']['submit']);
$this
->assertText($this->agreement['settings']['revoked'], t('Correct success message'));
}