You are here

public function EntityViewModeTestHelper::setUp in Entity view modes 7

Overrides DrupalWebTestCase::setUp().

Overrides DrupalWebTestCase::setUp

1 call to EntityViewModeTestHelper::setUp()
EntityViewModeSuggestionsTest::setUp in ./entity_view_mode.test
Overrides EntityViewModeTestHelper::setUp().
1 method overrides EntityViewModeTestHelper::setUp()
EntityViewModeSuggestionsTest::setUp in ./entity_view_mode.test
Overrides EntityViewModeTestHelper::setUp().

File

./entity_view_mode.test, line 13
Test integration for the entity_view_mode module.

Class

EntityViewModeTestHelper
@file Test integration for the entity_view_mode module.

Code

public function setUp(array $modules = array()) {
  $modules[] = 'entity_view_mode';
  $modules[] = 'entity_view_mode_test';
  parent::setUp($modules);

  // Create an administrative user.
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'administer entity view modes',
    'administer content types',
  ));
}