You are here

protected function EntityCrudHookTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityCrudHookTest.php \Drupal\system\Tests\Entity\EntityCrudHookTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides EntityUnitTestBase::setUp

File

core/modules/system/src/Tests/Entity/EntityCrudHookTest.php, line 50
Contains \Drupal\system\Tests\Entity\EntityCrudHookTest.

Class

EntityCrudHookTest
Tests the invocation of hooks when creating, inserting, loading, updating or deleting an entity.

Namespace

Drupal\system\Tests\Entity

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('user', array(
    'users_data',
  ));
  $this
    ->installSchema('file', array(
    'file_usage',
  ));
  $this
    ->installSchema('node', array(
    'node_access',
  ));
  $this
    ->installSchema('comment', array(
    'comment_entity_statistics',
  ));
  $this
    ->installConfig([
    'node',
    'comment',
  ]);
}