protected function tearDown()
 {
     $this->databasehelper = null;
     $this->course = null;
     $this->users = null;
     $this->resource = null;
     parent::tearDown();
 }
示例#2
0
 /**
  * Tear down required for all notification tests.
  *
  * This includes emptying the list of notifications on the session, resetting any session which exists, and setting
  * up a new moodle_page object.
  */
 public function tearDown()
 {
     global $PAGE, $SESSION;
     $PAGE = null;
     \core\session\manager::init_empty_session();
     $SESSION->notifications = [];
     parent::tearDown();
 }
示例#3
0
 protected function tearDown()
 {
     $this->teamwork = null;
     $this->course = null;
     $this->cm = null;
     $this->context = null;
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->db = null;
     $this->previouscourseattributes = null;
     $this->previouscourses = null;
     $this->currentyear = null;
     $this->currentcourseattributes = null;
     $this->currentcourse = null;
     parent::tearDown();
 }
示例#5
0
 /**
  * Cleans things up after this test case has run.
  */
 protected function tearDown()
 {
     global $SESSION;
     parent::tearDown();
     if ($this->initiallang !== null) {
         $SESSION->lang = $this->initiallang;
         $this->initiallang = null;
     } else {
         unset($SESSION->lang);
     }
 }
 public function tearDown()
 {
     $this->revert_to_real_course();
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     null;
 }
示例#8
0
 /**
  * Delete temporary entries from the database
  * @return void
  */
 protected function tearDown() {
     events_uninstall('unittest');
     parent::tearDown();
 }
 /**
  * Set timezone back to default.
  */
 protected function tearDown()
 {
     date_default_timezone_set($this->systemdefaulttimezone);
     parent::tearDown();
 }
示例#10
0
 protected function tearDown()
 {
     $this->testpage = null;
     $this->blockmanager = null;
     parent::tearDown();
 }
 protected function tearDown()
 {
     ini_set('error_log', $this->oldlog);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->recommendator = null;
     parent::tearDown();
 }
 /**
  * remove_category_plugin_values
  * Teardown function for this test suite's test cases.
  * This gets run for each test* function in this class
  */
 protected function tearDown()
 {
     // Todo teardown our tables and data.
     $this->revert_to_real_course();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->recommendator = null;
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->matrix;
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->workshopplus = null;
     parent::tearDown();
 }
示例#17
0
 protected function tearDown()
 {
     $this->teamwork = null;
     $this->evaluator = null;
     parent::tearDown();
 }
示例#18
0
    protected function tearDown() {
        global $CFG;
        $CFG->stringfilters = $this->origcfgstringfilters;
        $CFG->filterall = $this->origcfgfilterall;

        parent::tearDown();
    }
示例#19
0
文件: helper.php 项目: numbas/moodle
 protected function tearDown() {
     $this->updater = null;
     parent::tearDown();
 }
示例#20
0
 protected function tearDown()
 {
     $this->allocator = null;
     $this->workshop = null;
     parent::tearDown();
 }
示例#21
0
 protected function tearDown()
 {
     $this->teamwork = null;
     $this->strategy = null;
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->block = null;
     $this->db = null;
     parent::tearDown();
 }