You are here

public function FeaturesUserTestCase::setUp in Features 6

Same name and namespace in other branches
  1. 7.2 tests/features.test \FeaturesUserTestCase::setUp()
  2. 7 tests/features.test \FeaturesUserTestCase::setUp()

Set up test.

Overrides DrupalWebTestCase::setUp

File

tests/features.test, line 21

Class

FeaturesUserTestCase
User permission component tests for Features

Code

public function setUp() {
  parent::setUp('fieldgroup', 'text', 'content', 'context', 'ctools', 'views', 'imageapi', 'imagecache', 'features', 'features_test');

  // Run a features rebuild to ensure our feature is fully installed.
  features_rebuild();
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer features',
  ));
  $this
    ->drupalLogin($admin_user);
}