You are here

protected function AgreementTestCase::submitAgreementFormWithoutAgreeing in Agreement 6.2

Same name and namespace in other branches
  1. 6 agreement.test \AgreementTestCase::submitAgreementFormWithoutAgreeing()
  2. 7.2 agreement.test \AgreementTestCase::submitAgreementFormWithoutAgreeing()
2 calls to AgreementTestCase::submitAgreementFormWithoutAgreeing()
AgreementDefaultsPrivilegedUserTestCase::testAgreement in ./agreement.test
AgreementDefaultsUnprivilegedUserTestCase::testAgreement in ./agreement.test

File

./agreement.test, line 88
Tests for Agreement module.

Class

AgreementTestCase
@file Tests for Agreement module.

Code

protected function submitAgreementFormWithoutAgreeing($uid) {

  // Try to submit without checking the I agree box
  $field_values = array();
  $this
    ->drupalPost('agreement', $field_values, variable_get('agreement_submit_text', $this->not_set));
  $this
    ->assertText(variable_get('agreement_message_failure', $this->not_set), t('Correct error message'));
}