public function tearDown() { while (($language = array_pop($this->createdLanguages)) !== null) { $this->languageService->deleteLanguage($language); } parent::tearDown(); }
function tearDown() { $app =& Dataface_Application::getInstance(); $sql = "drop table if exists `md_test1`"; $res = xf_db_query($sql, $app->db()); if (!$res) { trigger_error(xf_db_error($app->db()), E_USER_ERROR); } $sql = "drop table if exists `md_test1__metadata`"; $res = xf_db_query($sql, $app->db()); if (!$res) { trigger_error(xf_db_error($app->db()), E_USER_ERROR); } parent::tearDown(); }
/** Coverage: deleteRole **/ public function tearDown() { parent::tearDown(); $this->rs->deleteRole($this->newRole); }
public function tearDown() { parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->us->deleteUser($this->newUser); }
/** * @return void */ protected function tearDown() { ReflectionSessionInstance::set(); parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->os->deleteOrganization($this->subOrg); $this->os->deleteOrganization($this->testOrg); }
public function tearDown() { parent::tearDown(); $this->getIndexer()->deleteIndex('ProductForAlgoliaIntegrationTest'); $this->getIndexer()->waitForAlgoliaTasks(); }
public function tearDown() { parent::tearDown(); $this->jc->repositoryService()->deleteResources($this->testFolder->uri); $this->jc->userService()->deleteUser($this->testUser); }
public function tearDown() { parent::tearDown(); $this->characterSetList->getGenerator()->removeOutput(); }
public function tearDown() { unset($this->invitationObject); parent::tearDown(); }
/** Coverage: deleteJob, deleteResource **/ public function tearDown() { parent::tearDown(); $this->js->deleteJob($this->testJob->id); $this->rs->deleteResources($this->testFolder->uri); }
public function tearDown() { parent::tearDown(); $this->generator->removeOutput(); }
<?php /** * A Test dataface application. Used to perform unit tests on. */ require_once 'testconfig.php'; if (@$_REQUEST['-action'] == 'setUp') { require_once 'BaseTest.php'; $test = new BaseTest(); $test->setUp(); unset($_REQUEST['-action']); unset($_GET['-action']); } else { if (@$_REQUEST['-action'] == 'tearDown') { require_once 'BaseTest.php'; $test = new BaseTest(); $test->tearDown(); unset($_REQUEST['-action']); unset($_GET['-action']); echo 'Tear down successful'; exit; } else { require_once 'dataface-public-api.php'; $app =& Dataface_Application::getInstance(); $app->display(); } }
public function tearDown() { parent::tearDown(); $this->testSuccess = false; }