You are here

public function AcquiaContentHubSerializerTestBase::setUp in Acquia Content Hub 8.2

Overrides KernelTestBase::setUp

4 calls to AcquiaContentHubSerializerTestBase::setUp()
CreateNewRevisionTest::setUp in tests/src/Kernel/EventSubscriber/PreEntitySave/CreateNewRevisionTest.php
EntitySubqueuePreSaveTest::setUp in tests/src/Kernel/EventSubscriber/PreEntitySave/EntitySubqueuePreSaveTest.php
MetatagFieldSerializerTest::setUp in modules/acquia_contenthub_metatag/tests/src/Kernel/EventSubscriber/SerializeContentField/MetatagFieldSerializerTest.php
PathFieldSerializerTest::setUp in tests/src/Kernel/EventSubscriber/SerializeContentField/PathFieldSerializerTest.php
4 methods override AcquiaContentHubSerializerTestBase::setUp()
CreateNewRevisionTest::setUp in tests/src/Kernel/EventSubscriber/PreEntitySave/CreateNewRevisionTest.php
EntitySubqueuePreSaveTest::setUp in tests/src/Kernel/EventSubscriber/PreEntitySave/EntitySubqueuePreSaveTest.php
MetatagFieldSerializerTest::setUp in modules/acquia_contenthub_metatag/tests/src/Kernel/EventSubscriber/SerializeContentField/MetatagFieldSerializerTest.php
PathFieldSerializerTest::setUp in tests/src/Kernel/EventSubscriber/SerializeContentField/PathFieldSerializerTest.php

File

tests/src/Kernel/AcquiaContentHubSerializerTestBase.php, line 88

Class

AcquiaContentHubSerializerTestBase
Base class for testing serialization.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function setUp() : void {
  parent::setup();
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installEntitySchema('node');
  $this->configFactory = $this->container
    ->get('config.factory');
  $this->dispatcher = $this->container
    ->get('event_dispatcher');
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this
    ->createAcquiaContentHubAdminSettings();
  $this->clientFactory = $this->container
    ->get('acquia_contenthub.client.factory');
}