You are here

protected function AgreementTestCase::privilegedUserLogin in Agreement 6

Same name and namespace in other branches
  1. 6.2 agreement.test \AgreementTestCase::privilegedUserLogin()
  2. 7.2 agreement.test \AgreementTestCase::privilegedUserLogin()
2 calls to AgreementTestCase::privilegedUserLogin()
AgreementCustomUnprivilegedUserTestCase::testAgreementDestination in ./agreement.test
AgreementTestCase::setUp in ./agreement.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

./agreement.test, line 37
Tests for the Agreement module

Class

AgreementTestCase
@file Tests for the Agreement module

Code

protected function privilegedUserLogin() {

  // Create and log in our privileged user.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'configure agreement settings',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}