You are here

protected function AgreementTestCase::bypassUserLogin in Agreement 7.2

Creates an user with the "bypass agreement" permission and login.

1 call to AgreementTestCase::bypassUserLogin()
AgreementBypassUserTestCase::testAgreement in ./agreement.test
Tests that the agreement page is not displayed for the user.

File

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

Class

AgreementTestCase
Agreement base test class.

Code

protected function bypassUserLogin() {
  $this->bypassUser = $this
    ->drupalCreateUser(array(
    'bypass agreement',
  ));
  $this
    ->drupalLogin($this->bypassUser);
}