protected function AgreementTestCase::isAgreementPage in Agreement 7.2
Same name and namespace in other branches
- 6.2 agreement.test \AgreementTestCase::isAgreementPage()
- 6 agreement.test \AgreementTestCase::isAgreementPage()
Checks if the current page is the agreement page.
Parameters
array $agreement: The agreement type.
10 calls to AgreementTestCase::isAgreementPage()
- AgreementBypassUserTestCase::testAgreement in ./
agreement.test - Tests that the agreement page is not displayed for the user.
- AgreementCustomUnprivilegedUserTestCase::testAgreement in ./
agreement.test - Tests the agreement page only on the front page.
- AgreementCustomUnprivilegedUserTestCase::testAgreementDestination in ./
agreement.test - Tests the agreement destination functionality.
- AgreementCustomUnprivilegedUserTestCase::testAgreementFrequency in ./
agreement.test - Tests the agreement frequency setting.
- AgreementDefaultsPrivilegedUserTestCase::testAgreement in ./
agreement.test - Tests the agreement page functionality.
File
- ./
agreement.test, line 105 - Tests for Agreement module.
Class
- AgreementTestCase
- Agreement base test class.
Code
protected function isAgreementPage($agreement) {
$this
->assertUrl($agreement['path'], array(), t('URL of agreement is correct: !url', array(
'!url' => $this
->getUrl(),
)));
$this
->assertTitle($agreement['settings']['title'] . $this->siteName);
$this
->assertText($agreement['settings']['checkbox'], t('Checkbox text is correct'));
}