MDL-50063 unittests: Remove some unnecesary gc_collect_cycles()
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 13 May 2016 00:50:45 +0000 (02:50 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 13 May 2016 00:50:45 +0000 (02:50 +0200)
commit07a069f1c0985dde2be4e0e2f1a1c5b9a17045d4
treee609e6dc440547b6f7c8c13e3817c95ed67764a6
parentfcd3bbfee031dddf739dbf65d21bb70886f324be
MDL-50063 unittests: Remove some unnecesary gc_collect_cycles()

Now backup and restore operations free logger resources calling
to the destroy() method. This commit ensures:

1) That gc_collect_cycles() is not used anymore in backup-related tests.
2) That all backup and restore controllers in test do always call
   to the detroy() method.
3) Some unset() calls, needed to make gc_collect_cycles() are not used
   anymore.
13 files changed:
admin/tool/uploadcourse/classes/course.php
admin/tool/uploadcourse/tests/course_test.php
admin/tool/uploadcourse/tests/helper_test.php
admin/tool/uploadcourse/tests/processor_test.php
backup/moodle2/tests/moodle2_course_format_test.php
backup/moodle2/tests/moodle2_test.php
backup/util/checks/tests/checks_test.php
backup/util/plan/tests/plan_test.php
backup/util/plan/tests/step_test.php
backup/util/plan/tests/task_test.php
course/tests/courselib_test.php
course/tests/externallib_test.php
lib/tests/questionlib_test.php