function BackupMigrateFunctionalityTest::tearDown in Backup and Migrate 5
Same name and namespace in other branches
- 6.3 tests/backup_migrate.functionality.test \BackupMigrateFunctionalityTest::tearDown()
- 6.2 tests/backup_migrate.functionality.test \BackupMigrateFunctionalityTest::tearDown()
SimpleTest core method: code run after each and every test method.
Overrides DrupalTestCase::tearDown
File
- tests/
BackupMigrateFunctionalityTest.test, line 46
Class
- BackupMigrateFunctionalityTest
- 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();
}