You are here

protected function AgreementTestCase::isNotAgreementPage in Agreement 7.2

Same name and namespace in other branches
  1. 6.2 agreement.test \AgreementTestCase::isNotAgreementPage()
  2. 6 agreement.test \AgreementTestCase::isNotAgreementPage()

Checks if the current page is not the agreement page.

Parameters

array $agreement: The agreement type.

9 calls to AgreementTestCase::isNotAgreementPage()
AgreementCustomUnprivilegedUserTestCase::testAgreement in ./agreement.test
Tests the agreement page only on the front page.
AgreementCustomUnprivilegedUserTestCase::testAgreementFrequency in ./agreement.test
Tests the agreement frequency setting.
AgreementDefaultsPrivilegedUserTestCase::testAgreement in ./agreement.test
Tests the agreement page functionality.
AgreementDefaultsUnprivilegedUserTestCase::testAgreement in ./agreement.test
Tests the agreement page for every page except the front page.
AgreementMultipleRoleTestCase::testAgreementForFirstRole in ./agreement.test
Asserts that the user with the first role gets the agreement page.

... See full list

File

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

Class

AgreementTestCase
Agreement base test class.

Code

protected function isNotAgreementPage($agreement) {
  $this
    ->assertNotEqual($this
    ->getUrl(), url($agreement['path'], array()), t('Not on agreement page'));
}