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:
tjhunt
2009-01-07 08:58:41 +00:00
parent 6fe51abe59
commit a7b7f075df
3 changed files with 26 additions and 0 deletions
+3
View File
@@ -148,6 +148,9 @@ class SimpleTestCase {
$reporter->paintCaseEnd($this->getLabel());
}
unset($this->_reporter);
//moodlefix begins
$context->unsetTest();
//moodlefix ends
return $reporter->getStatus();
}