MDL-71367 unit tests: Add missing ->destroy() call to test backups
[moodle.git] / backup / tests / backup_cleanup_task_test.php
index e4b71c8..98fdbb3 100644 (file)
@@ -60,6 +60,7 @@ class core_backup_cleanup_task_testcase extends advanced_testcase {
             $user->id
         );
         $controller->execute_plan();
+        $controller->destroy(); // Unset all structures, close files...
         return $controller->get_backupid();
     }