You are here

function sweaverAdministration::setUp in Sweaver 7

Same name and namespace in other branches
  1. 6 tests/sweaver.admin.test \sweaverAdministration::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/sweaver.admin.test, line 23
Tests for sweaver backend

Class

sweaverAdministration
@file Tests for sweaver backend

Code

function setUp() {
  parent::setUp('sweaver', 'ctools');
  $this->perms = '';
  $this->image_path = 'misc/druplicon.png';
  $modules = array(
    'sweaver',
    'ctools',
  );
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'use editor',
    'configure sweaver',
    'bypass node access',
    'administer nodes',
    'access administration pages',
  ));
  $this
    ->drupalLogin($this->admin_user);
}