unit tests: MDL-17803 test classes were not getting destroyed at the right time, which was breaking the code that reset the test DB to the normal DB.
This commit is contained in:
@@ -148,6 +148,9 @@ class SimpleTestCase {
|
||||
$reporter->paintCaseEnd($this->getLabel());
|
||||
}
|
||||
unset($this->_reporter);
|
||||
//moodlefix begins
|
||||
$context->unsetTest();
|
||||
//moodlefix ends
|
||||
return $reporter->getStatus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user