You are here

public function PathFieldSerializerTest::setUp in Acquia Content Hub 8.2

Throws

\Exception

Overrides AcquiaContentHubSerializerTestBase::setUp

File

tests/src/Kernel/EventSubscriber/SerializeContentField/PathFieldSerializerTest.php, line 45

Class

PathFieldSerializerTest
Tests Path Field Serialization.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\SerializeContentField

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
    ->setUpCurrentUser();
}