You are here

function dsBaseTest::setUp in Display Suite 7

Same name and namespace in other branches
  1. 7.2 tests/ds.base.test \dsBaseTest::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/ds.base.test, line 13
Base functions and tests for Display Suite.

Class

dsBaseTest
@file Base functions and tests for Display Suite.

Code

function setUp() {
  parent::setUp('ctools', 'ds', 'ds_extras', 'search', 'ds_search', 'rel', 'ds_forms', 'ds_test', 'panels', 'views');
  variable_set('rel_build_registration_ignore', '');
  variable_set('search_active_modules', array(
    'node' => '',
    'user' => 'user',
    'ds_search' => 'ds_search',
  ));
  menu_rebuild();
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'admin_view_modes',
    'admin_fields',
    'admin_display_suite',
    'rel_build_registration',
    'ds_switch article',
    'use text format ds_code',
    'access administration pages',
    'administer content types',
    'administer users',
    'administer comments',
    'administer nodes',
    'bypass node access',
    'administer blocks',
    'search content',
    'use advanced search',
    'administer search',
    'access user profiles',
  ));
  $this
    ->drupalLogin($this->admin_user);
}