You are here

protected function AgreementTestCase::isAgreementPage in Agreement 6

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

File

./agreement.test, line 57
Tests for the Agreement module

Class

AgreementTestCase
@file Tests for the Agreement module

Code

protected function isAgreementPage() {
  $this
    ->assertEqual($this->base_url . '/' . variable_get('agreement_page_url', $this->not_set), $this
    ->getUrl(), t('URL of agreement is correct') . ': ' . $this
    ->getUrl());
  $this
    ->assertEqual($this->page_title, variable_get('agreement_page_title', $this->not_set), t('agreement_page_title_variable is set') . ': ' . $this->page_title);
  $this
    ->assertTitle(variable_get('agreement_page_title', $this->not_set) . $this->site_name, t('Title of agreement page is correct'));
  $this
    ->assertText(variable_get('agreement_checkbox_text', $this->not_set), t('Checkbox text is correct'));
}