public function AgreementBypassUserTestCase::testAgreement in Agreement 7.2
Tests that the agreement page is not displayed for the user.
File
- ./
agreement.test, line 469 - Tests for Agreement module.
Class
- AgreementBypassUserTestCase
- Tests the agreement functionality for an user with "bypass agreement".
Code
public function testAgreement() {
// Sent to agreement page.
$this
->unprivilegedUserLogin();
$this
->isAgreementPage($this->agreement);
// Not sent to agreement page.
$this
->bypassUserLogin();
$this
->assertUrl('user/' . $this->bypassUser->uid);
}