You are here

public function EntityReferenceAutocreateTestCase::setUp in Entityreference Autocreate 7

@inheritdoc

Overrides DrupalWebTestCase::setUp

File

./entityreference_autocreate.test, line 31
Tests for autocreation of entity references

Class

EntityReferenceAutocreateTestCase
Test for Entity Reference admin UI.

Code

public function setUp() {

  // Although we don't need all modules (views) all the time,
  // Enabling modules on the fly caused terrible pains, so all on from start.
  // Maybe it was because I was calling $this->resetAll();
  parent::setUp(array(
    'field_ui',
    'ctools',
    'entity',
    'entityreference',
    'entityreference_autocreate',
    'entityreference_autocreate_test',
    'views',
    'views_ui',
  ));

  // Create test user.
  $this->adminUser = $this
    ->drupalCreateUser(array(
    'access content',
    'administer content types',
    'administer fields',
    'administer nodes',
    'bypass node access',
    'administer views',
    'administer software updates',
  ));
  $this
    ->drupalLogin($this->adminUser);
}