You are here

protected function FillPdfTestHelper::createPrivilegedUser in FillPDF 7

Creates a privileged user account.

2 calls to FillPdfTestHelper::createPrivilegedUser()
FillPdfMergeTestCase::setUp in tests/FillPdfMergeTestCase.test
Sets up a Drupal site for running functional and integration tests.
FillPdfTestCase::setUp in tests/FillPdfTestCase.test
Sets up a Drupal site for running functional and integration tests.

File

tests/FillPdfTestHelper.test, line 18

Class

FillPdfTestHelper
Helper functions for FillPDF testing.

Code

protected function createPrivilegedUser() {

  // Meh. Caching.
  drupal_static_reset('checkPermissions');

  // Create and log in our privileged user.
  $this->privilegedUser = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'administer pdfs',
    'publish all pdfs',
  ));
  $this
    ->drupalLogin($this->privilegedUser);
}