You are here

protected function UpdaterTest::tearDown in Update helper 8

Overrides KernelTestBase::tearDown

File

tests/src/Kernel/UpdaterTest.php, line 161

Class

UpdaterTest
@covers \Drupal\update_helper\Updater

Namespace

Drupal\Tests\update_helper\Kernel

Code

protected function tearDown() {
  $config_dir = $this->moduleHandler
    ->getModule('update_helper')
    ->getPath() . '/config';

  // Remove import file.
  unlink($config_dir . '/install/tour.tour.tour-update-helper-test.yml');
  rmdir($config_dir . '/install');

  // Remove configuration update definition.
  unlink($config_dir . '/update/test_updater.yml');
  unlink($config_dir . '/update/test_updater_only_delete.yml');
  rmdir($config_dir . '/update');
  rmdir($config_dir);
  parent::tearDown();
}