/** * tear down tests */ protected function tearDown() { if ($this->_restoreTestUser) { Tinebase_Core::set(Tinebase_Core::USER, $this->_restoreTestUser); } parent::tearDown(); }
/** * Cleans up the environment after running a test. * * @return void * * @since 12.1 */ protected function tearDown() { $this->_cipher = null; $this->key = null; parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.1 */ protected function tearDown() { $this->restoreFactoryState(); // Reset the dispatcher instance. TestReflection::setValue('JPluginHelper', 'plugins', null); parent::tearDown(); }
/** * tear down tests */ protected function tearDown() { parent::tearDown(); Tinebase_FileSystem::getInstance()->clearStatCache(); Tinebase_FileSystem::getInstance()->clearDeletedFilesFromFilesystem(); Tinebase_Cache_PerRequest::getInstance()->reset(); }
/** * tear down tests */ protected function tearDown() { parent::tearDown(); if (!$this->_transactionId) { Syncroton_Registry::getDeviceBackend()->delete($this->_device->id); } }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown() { $this->restoreErrorHandlers(); $this->restoreFactoryState(); unset($this->object); parent::tearDown(); }
public function tearDown() { DB::statement('DELETE FROM locators'); DB::statement('ALTER TABLE locators AUTO_INCREMENT = 1'); //DB::statement('DELETE FROM rooms'); parent::tearDown(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void * * @since 3.1 */ protected function tearDown() { $_SERVER = $this->server; unset($this->server); unset($this->object); parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.1 */ protected function tearDown() { // Reset the dispatcher instance. TestReflection::setValue('JEventDispatcher', 'instance', null); $this->restoreFactoryState(); parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.1 */ protected function tearDown() { // Reset the dispatcher instance. TestReflection::setValue('JEventDispatcher', 'instance', null); unset($this->class); parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.1 */ protected function tearDown() { // Reset the dispatcher instance. TestReflection::setValue('JEventDispatcher', 'instance', null); TestReflection::setValue('JPluginHelper', 'plugins', null); parent::tearDown(); }
/** * This will run at the end of every test method */ public function tearDown() { // Parent teardown parent::tearDown(); // Unset ViewHelper class $this->viewHelper = null; }
/** * tear down tests */ protected function tearDown() { parent::tearDown(); if ($this->_testContainer) { Tinebase_Container::getInstance()->deleteContainer($this->_testContainer); } }
public function tearDown() { unset($this->backend); unset($this->ab); Utils\Properties::purgeIndexes($this->contactIds); parent::tearDown(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void * * @since 3.1 */ protected function tearDown() { $_SERVER = $this->backupServer; $this->restoreFactoryState(); parent::tearDown(); JHtmlJqueryInspector::resetLoaded(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown() { $this->restoreFactoryState(); unset($this->input); unset($this->object); parent::tearDown(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void * * @since 3.1 */ protected function tearDown() { $_SERVER = $this->backupServer; unset($this->backupServer); $this->restoreFactoryState(); parent::tearDown(); }
/** * tear down tests */ public function tearDown() { parent::tearDown(); Calendar_Controller_Event::getInstance()->sendNotifications(false); Tinebase_Acl_Roles::getInstance()->resetClassCache(); if (!$this->_transactionId) { if ($this->_backend != NULL) { $events = $this->_backend->search(new Calendar_Model_EventFilter(array(array('field' => 'container_id', 'operator' => 'in', 'value' => $this->_testCalendars->getId()))), new Tinebase_Model_Pagination(array())); // delete alarms Tinebase_Alarm::getInstance()->deleteAlarmsOfRecord('Calendar_Model_Event', $events->getArrayOfIds()); foreach ($events as $event) { $this->_backend->delete($event->getId()); } } foreach ($this->_testCalendars as $cal) { Tinebase_Container::getInstance()->deleteContainer($cal, true); } } $this->_testUserContact = NULL; $this->_testCalendar = NULL; $this->_testCalendars = NULL; $this->_personas = NULL; $this->_personasContacts = array(); $this->_personasDefaultCals = array(); }
/** * Delete the keys that were added to the database during the test */ public function tearDown() { parent::tearDown(); Redis::del($this->testingResource->testModelHashId); Redis::del($this->testingResource->testModelSearchableId); Redis::del("testmodels"); }
public function tearDown() { parent::tearDown(); $this->userFileStorage = null; File::deleteDirectory($this->tmpDir); File::cleanDirectory($this->storageDir); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 3.6 */ protected function tearDown() { unset($this->options); unset($this->uri); unset($this->object); parent::tearDown(); }
public function tearDown() { parent::tearDown(); // TODO: Change the autogenerated stub $this->session = null; $this->storage = null; }
protected function tearDown() { if ($this->view) { $this->view->unlink($this->filename); $this->view->deleteAll($this->folder); } parent::tearDown(); }
protected function tearDown() { if (\OC_DB::tableExists('encryption_test')) { \OC_DB::dropTable('encryption_test'); } $this->assertTableNotExist('encryption_test'); parent::tearDown(); }
public function tearDown() { parent::tearDown(); // Need LRS table is empty because waiting the getLrsBySubdomain() if ($this->lrs) { $this->lrs->delete(); } }
public function tearDown() { parent::tearDown(); $taxonomy = TermTaxonomy::where('taxonomy', '=', 'stuff')->first(); if ($taxonomy !== null) { $taxonomy->delete(); } }
protected function tearDown() { \OC_Hook::clear('OC_Filesystem', 'post_write'); \OC_Hook::clear('OC_Filesystem', 'post_delete'); \OC_Hook::clear('OC_Filesystem', 'post_rename'); \OC_Hook::clear('OCP\\Share', 'post_update_permissions'); parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->schema()->drop('users'); $this->schema()->drop('users_i18n'); $this->schema()->drop('posts'); $this->schema()->drop('posts_i18n'); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.1 */ protected function tearDown() { // Reset the loaded plugins. TestReflection::setValue('JPluginHelper', 'plugins', null); $this->restoreFactoryState(); $_SERVER = $this->backupServer; parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 3.6 */ protected function tearDown() { unset($this->options); unset($this->client); unset($this->response); unset($this->object); parent::tearDown(); }