You are here

protected function AgreementTestCase::submitAgreementFormWithAgreeing in Agreement 6

Same name and namespace in other branches
  1. 6.2 agreement.test \AgreementTestCase::submitAgreementFormWithAgreeing()
  2. 7.2 agreement.test \AgreementTestCase::submitAgreementFormWithAgreeing()
3 calls to AgreementTestCase::submitAgreementFormWithAgreeing()
AgreementCustomUnprivilegedUserTestCase::testAgreementDestination in ./agreement.test
AgreementDefaultsPrivilegedUserTestCase::testAgreement in ./agreement.test
AgreementDefaultsUnprivilegedUserTestCase::testAgreement in ./agreement.test

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();
}