protected function AgreementTestCase::isAgreementPage in Agreement 6
Same name and namespace in other branches
- 6.2 agreement.test \AgreementTestCase::isAgreementPage()
- 7.2 agreement.test \AgreementTestCase::isAgreementPage()
3 calls to AgreementTestCase::isAgreementPage()
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'));
}