You are here

function BackupMigrateUnitTest::tearDown in Backup and Migrate 5

Same name and namespace in other branches
  1. 6.3 tests/backup_migrate.unit.test \BackupMigrateUnitTest::tearDown()
  2. 6.2 tests/backup_migrate.unit.test \BackupMigrateUnitTest::tearDown()

SimpleTest core method: code run after each and every test method.

Overrides DrupalTestCase::tearDown

File

tests/BackupMigrateUnitTest.test, line 38

Class

BackupMigrateUnitTest
Unit tests for Backup and Migrate module.

Code

function tearDown() {

  //
  if ($this->directory_backup) {
    $directory = _backup_migrate_get_save_path();
    $this
      ->delete_directory(_backup_migrate_get_save_path());
    rename($this->directory_backup, $directory);
  }
  parent::tearDown();
}