You are here

protected function PublishOnlyRenderedTest::setUp in Acquia Lift Connector 8.4

Overrides KernelTestBase::setUp

File

modules/acquia_lift_publisher/tests/src/Kernel/EventSubscriber/Publish/PublishOnlyRenderedTest.php, line 100

Class

PublishOnlyRenderedTest
Class PublishOnlyRenderedTest.

Namespace

Drupal\Tests\acquia_lift_publisher\Kernel\EventSubscriber\Publish

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('acquia_contenthub_publisher', [
    'acquia_contenthub_publisher_export_tracking',
  ]);
  $this
    ->installEntitySchema('path_alias');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('entity_view_mode');
  $this
    ->installEntitySchema('entity_view_display');
  $this
    ->installEntitySchema('field_config');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installConfig([
    'acquia_lift_publisher',
    'image',
    'node',
    'filter',
    'system',
  ]);
  $this
    ->createContentType([
    'type' => 'article',
    'name' => 'article',
  ]);
  $this->publisherSettings = $this->container
    ->get('config.factory')
    ->getEditable(ContentPublishingForm::CONFIG_NAME);
  $this->eventDispatcher = \Drupal::service('event_dispatcher');
}