You are here

public function RemovePathAliasFieldTest::setUp in Acquia Content Hub 8.2

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EventSubscriber/ExcludeContentField/RemovePathAliasFieldTest.php, line 48

Class

RemovePathAliasFieldTest
Tests remove path alias field serialization.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\ExcludeContentField

Code

public function setUp() : void {
  if (version_compare(\Drupal::VERSION, '9.0', '>=')) {
    static::$modules[] = 'path_alias';
  }
  parent::setup();
  self::$modules = array_merge(parent::$modules, self::$modules);
  if (version_compare(\Drupal::VERSION, '8.8.0', '>=')) {
    $this
      ->installEntitySchema('path_alias');
  }
  $this
    ->installConfig('node');
  $this
    ->installConfig('field');
  $this
    ->installConfig('filter');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
}