You are here

function ProfileCRUDTest::setUp in Profile 2 8

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

src/Tests/ProfileCRUDTest.php, line 21
Contains \Drupal\profile\Tests\ProfileCRUDTest.

Class

ProfileCRUDTest
Tests basic CRUD functionality of profiles.

Namespace

Drupal\profile\Tests

Code

function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', 'url_alias');
  $this
    ->installSchema('system', 'sequences');
  $this
    ->installSchema('user', 'users_data');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('profile');
  $this
    ->enableModules(array(
    'field',
    'entity_reference',
    'user',
    'profile',
  ));
}