You are here

function dsBaseTest::setUp in Display Suite 7.2

Same name and namespace in other branches
  1. 7 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', 'ds_format', 'ds_forms', 'ds_ui', 'ds_test', 'panels', 'views');
  variable_set('search_active_modules', array(
    'node' => '',
    'user' => 'user',
    'ds_search' => 'ds_search',
  ));
  menu_rebuild();
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'admin_classes',
    'admin_view_modes',
    'admin_fields',
    'admin_display_suite',
    'ds_switch article',
    'use text format ds_code',
    'access administration pages',
    'administer content types',
    'administer fields',
    'administer users',
    'administer comments',
    'administer nodes',
    'bypass node access',
    'administer blocks',
    'search content',
    'use advanced search',
    'administer search',
    'access user profiles',
    'administer permissions',
  ));
  $this
    ->drupalLogin($this->admin_user);
}