You are here

public function MetatagFieldSerializerTest::tearDown in Acquia Content Hub 8.2

Overrides AcquiaContentHubSerializerTestBase::tearDown

File

modules/acquia_contenthub_metatag/tests/src/Kernel/EventSubscriber/SerializeContentField/MetatagFieldSerializerTest.php, line 133

Class

MetatagFieldSerializerTest
Tests Metatag Field Serialization.

Namespace

Drupal\Tests\acquia_contenthub_metatag\Kernel\EventSubscriber\SerializeContentField

Code

public function tearDown() : void {

  // Delete the previously created content type.
  $node_type = $this->entityTypeManager
    ->getStorage('node_type')
    ->load(self::BUNDLE);
  $node_type
    ->delete();

  // Delete Acquia Content Hub admin/metatag settings.
  $this->configFactory
    ->getEditable('acquia_contenthub.admin_settings')
    ->delete();
  $this->configFactory
    ->getEditable('acquia_contenthub_metatag.settings')
    ->delete();
  parent::tearDown();
}