/** * Method called after each test method. Doesn't do anything extraordinary except restore the global $DB to the real one. */ public function tearDown() { global $CFG; $CFG->enableavailability = $this->oldcfg->enableavailability; $CFG->enablecompletion = $this->oldcfg->enablecompletion; parent::tearDown(); // All the test tables created in setUp will be dropped by this }
public function tearDown() { parent::tearDown(); }
public function tearDown() { global $COURSE; $this->testpage = NULL; $COURSE = $this->originalcourse; parent::tearDown(); }
public function tearDown() { global $CFG; // Recover original frontpageroleid $CFG->defaultfrontpageroleid = $this->originaldefaultfrontpageroleid; parent::tearDown(); }
function tearDown() { parent::tearDown(); // All the test tables created in setUp will be dropped by this }
public function tearDown() { global $USER; if (!empty($this->isediting)) { // Replace $USER->editing as it was there at setup. $USER->editing = $this->isediting; $this->isediting = null; } parent::tearDown(); }
public function tearDown() { $CFG->stringfilters = $this->origcfgstringfilters; $CFG->filterall = $this->origcfgfilterall; parent::tearDown(); }
public function tearDown() { global $USER, $SITE; if (isset($this->accesslibprevuser)) { $USER = $this->accesslibprevuser; } if (isset($this->accesslibprevsite)) { $SITE = $this->accesslibprevsite; } parent::tearDown(); }
public function tearDown() { parent::tearDown(); // In charge of droppng all the test tables }
/** * Tear Down function. Here we remove all the database entries that we created * for testing the unit tests. */ public function tearDown() { $this->revert_to_real_db(); parent::tearDown(); }
function tearDown() { global $USER; $USER = $this->olduser; parent::tearDown(); }