You are here

protected function EntityReferenceFieldDependencyCollectorTest::setUp in Dependency Calculation 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EventSubscriber/DependencyCollector/EntityReferenceFieldDependencyCollectorTest.php, line 56

Class

EntityReferenceFieldDependencyCollectorTest
Class EntityReferenceFieldDependencyCollectorTest.

Namespace

Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollector

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig('node');
  $this
    ->installConfig('field');
  $this
    ->installConfig('filter');
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installSchema('system', [
    'sequences',
    'key_value_expire',
  ]);
  $this
    ->installEntitySchema('path_alias');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('taxonomy_term');
  $this->calculator = Drupal::service('entity.dependency.calculator');
}