mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-47675 phpunit: Update unit tests to pass on MSSQL
Unit tests were failing on MSSQL. gc_collect_cycles() was removed from the phpunit utils.php file to save time in running the tests, but MSSQL doesn't clean up open files as well as other databases. This patch includes the garbage collection for the unit tests that require it.
This commit is contained in:
parent
b49de5d930
commit
c42d18183a
7 changed files with 49 additions and 0 deletions
|
@ -52,6 +52,13 @@ class assignfeedback_editpdf_testcase extends mod_assign_base_testcase {
|
|||
parent::setUp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidy up open files that may be left open.
|
||||
*/
|
||||
protected function tearDown() {
|
||||
gc_collect_cycles();
|
||||
}
|
||||
|
||||
protected function create_assign_and_submit_pdf() {
|
||||
global $CFG;
|
||||
$assign = $this->create_instance(array('assignsubmission_onlinetext_enabled' => 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue