You are here

public function ForenaReportTestCase::setup in Forena Reports 7.5

Same name in this branch
  1. 7.5 forena.test \ForenaReportTestCase::setup()
  2. 7.5 tests/forena.test \ForenaReportTestCase::setup()
Same name and namespace in other branches
  1. 7.3 forena.test \ForenaReportTestCase::setup()
  2. 7.4 forena.test \ForenaReportTestCase::setup()

File

tests/forena.test, line 19
tests Tests for forena. @author davidmetzler

Class

ForenaReportTestCase
@file tests Tests for forena. @author davidmetzler

Code

public function setup() {
  parent::setup(array(
    'forena',
    'forena_test',
  ));

  // Create and log in our privileged user.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'access sampledb data',
    'access drupal data',
    'access forena_help data',
    'administer forena reports',
    'list reports',
  ));
  $this
    ->drupalLogin($this->privileged_user);

  // Verify that the cache is loaded.
  $this
    ->drupalGet('forena');
}