MDL-66794 core_customfield: Reset Course handler after unit tests run.

This commit is contained in:
Mikhail Golenkov
2019-09-30 10:56:04 +10:00
parent 9528b1ff5b
commit 15136147ba
6 changed files with 48 additions and 0 deletions
@@ -34,6 +34,14 @@ use core_customfield\data_controller;
*/
class core_customfield_data_controller_testcase extends advanced_testcase {
/**
* This method is called after the last test of this test class is run.
*/
public static function tearDownAfterClass() {
$handler = core_course\customfield\course_handler::create();
$handler->delete_all();
}
/**
* Tests set up.
*/