You are here

public function FeaturesUserTestCase::setUp in Features 7

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

Set up test.

Overrides DrupalWebTestCase::setUp

File

tests/features.test, line 23

Class

FeaturesUserTestCase
User permission component tests for Features

Code

public function setUp() {
  parent::setUp(array(
    'field',
    'filter',
    'image',
    'taxonomy',
    'views',
    '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);
}