MDL-81462 phpunit: Add missing controller->destroy()

So we ensure that all file descriptors and backup temp structures
are properly closed and cleaned up.
This commit is contained in:
Eloy Lafuente (stronk7) 2024-04-08 08:57:31 +02:00
parent 26649f5750
commit ed84111010
No known key found for this signature in database
GPG Key ID: 53487A05E6228820

View File

@ -71,6 +71,7 @@ class backup_stepslib_test extends \advanced_testcase {
break;
}
}
$bc->destroy();
$reflection = new \ReflectionClass($step);
$method = $reflection->getMethod('define_structure');