protected function AgreementTestCase::privilegedUserLogin in Agreement 7.2
Same name and namespace in other branches
- 6.2 agreement.test \AgreementTestCase::privilegedUserLogin()
- 6 agreement.test \AgreementTestCase::privilegedUserLogin()
Creates a privileged user and login as the user.
1 call to AgreementTestCase::privilegedUserLogin()
- AgreementTestCase::setUp in ./
agreement.test - Sets up a Drupal site for running functional and integration tests.
File
- ./
agreement.test, line 56 - Tests for Agreement module.
Class
- AgreementTestCase
- Agreement base test class.
Code
protected function privilegedUserLogin() {
// Create and log in our privileged user.
$this->privilegedUser = $this
->drupalCreateUser(array(
'administer agreements',
'access administration pages',
'administer site configuration',
'bypass node access',
));
$this
->drupalLogin($this->privilegedUser);
}