You are here

public function AcquiaContentHubSerializerTestBase::tearDown in Acquia Content Hub 8.2

Overrides KernelTestBase::tearDown

1 call to AcquiaContentHubSerializerTestBase::tearDown()
MetatagFieldSerializerTest::tearDown in modules/acquia_contenthub_metatag/tests/src/Kernel/EventSubscriber/SerializeContentField/MetatagFieldSerializerTest.php
1 method overrides AcquiaContentHubSerializerTestBase::tearDown()
MetatagFieldSerializerTest::tearDown in modules/acquia_contenthub_metatag/tests/src/Kernel/EventSubscriber/SerializeContentField/MetatagFieldSerializerTest.php

File

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

Class

AcquiaContentHubSerializerTestBase
Base class for testing serialization.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function tearDown() : void {

  // Delete the previously created node.
  $nodes = $this->entityTypeManager
    ->getStorage('node')
    ->loadByProperties([
    'type' => self::BUNDLE,
  ]);
  foreach ($nodes as $node) {
    $node
      ->delete();
  }
  parent::tearDown();
}