You are here

protected function ProfileTest::setUp in Profile 8

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/ProfileTest.php, line 54

Class

ProfileTest
Tests basic functionality of profiles.

Namespace

Drupal\Tests\profile\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('profile');
  $this
    ->installEntitySchema('view');
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installConfig([
    'profile',
    'user',
  ]);
  $this->profileStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('profile');
  $this->user1 = $this
    ->createUser();
  $this->user2 = $this
    ->createUser();
}