You are here

protected function EntityTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/hal/src/Tests/EntityTest.php \Drupal\hal\Tests\EntityTest::setUp()
  2. 8 core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php \Drupal\Tests\views\Unit\Plugin\area\EntityTest::setUp()
  3. 8 core/modules/views/tests/src/Unit/Plugin/argument_validator/EntityTest.php \Drupal\Tests\views\Unit\Plugin\argument_validator\EntityTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/hal/src/Tests/EntityTest.php \Drupal\hal\Tests\EntityTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides NormalizerTestBase::setUp

File

core/modules/hal/src/Tests/EntityTest.php, line 31
Contains \Drupal\hal\Tests\EntityTest.

Class

EntityTest
Tests that nodes and terms are correctly normalized and denormalized.

Namespace

Drupal\hal\Tests

Code

protected function setUp() {
  parent::setUp();
  \Drupal::service('router.builder')
    ->rebuild();
  $this
    ->installSchema('system', array(
    'sequences',
  ));
  $this
    ->installSchema('comment', array(
    'comment_entity_statistics',
  ));
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installConfig([
    'node',
    'comment',
  ]);
}