This commit is contained in:
Huong Nguyen 2024-04-18 22:36:20 +07:00
commit 56ea31a508
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -71,11 +71,11 @@ class backup_stepslib_test extends \advanced_testcase {
break;
}
}
$bc->destroy();
$reflection = new \ReflectionClass($step);
$method = $reflection->getMethod('define_structure');
$structure = $method->invoke($step);
$bc->destroy();
$elements = $structure->get_final_elements();
$this->assertArrayHasKey('number', $elements);