protected function tearDown() { $qb = $this->connection->getQueryBuilder(); $qb->delete('share'); $qb->execute(); return parent::tearDown(); }
protected function tearDown() { foreach ($this->tmpDirs as $dir) { \OC_Helper::rmdirr($dir); } parent::tearDown(); }
protected function tearDown() { if ($this->cache) { $this->cache->clear(); } parent::tearDown(); }
public function tearDown() { unset($this->backend); unset($this->ab); Utils\Properties::purgeIndexes($this->contactIds); parent::tearDown(); }
protected function tearDown() { $result = \OC_User::deleteUser(self::$user); $this->assertTrue($result); $this->logout(); parent::tearDown(); }
public function tearDown() { $userManager = \OC::$server->getUserManager(); $userManager->get($this->user)->delete(); unset($_SERVER['HTTP_OC_CHUNKED']); parent::tearDown(); }
protected function tearDown() { if ($this->instance) { $this->instance->clear(); } parent::tearDown(); }
protected function tearDown() { OC::$server->getConfig()->setSystemValue('overwritewebroot', ''); OC::$server->getConfig()->setSystemValue('trusted_proxies', array()); OC::$server->getConfig()->setSystemValue('forwarded_for_headers', array()); parent::tearDown(); }
protected function tearDown() { $query = OC_DB::prepare('DELETE FROM `*PREFIX*share` WHERE `item_type` = ?'); $query->execute(array('test')); OC_Appconfig::setValue('core', 'shareapi_allow_resharing', $this->resharing); parent::tearDown(); }
protected function tearDown() { $conn = \OC_DB::getConnection(); $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`'); $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`'); parent::tearDown(); }
protected function tearDown() { $conn = \OC::$server->getDatabaseConnection(); $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`'); $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`'); parent::tearDown(); }
protected function tearDown() { $this->storage->getCache()->clear(); $sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?'; \OC_DB::executeAudited($sql, [$this->storage->getId()]); $this->clearMimeTypes(); parent::tearDown(); }
protected function tearDown() { \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin'); $this->logout(); \OC_User::deleteUser($this->user); \OC_Hook::clear(); parent::tearDown(); }
protected function tearDown() { \OC_User::setIncognitoMode(false); // Set old user \OC_User::setUserId($this->oldUser); \OC_Util::setupFS($this->oldUser); parent::tearDown(); }
protected function tearDown() { \OC_Config::setValue('datadirectory', $this->datadir); \OC_User::setUserId($this->uid); \OC_Util::setupFS($this->uid); \OC\Files\Filesystem::mount($this->originalStorage, array(), '/'); parent::tearDown(); }
protected function tearDown() { foreach ($this->storages as $storage) { $storage->getCache()->clear(); } $this->logout(); parent::tearDown(); }
protected function tearDown() { foreach ($this->users as $user) { $user->delete(); } $this->groupManager->get('admin')->delete(); parent::tearDown(); }
protected function tearDown() { foreach ($this->users as $user) { \OC_User::deleteUser($user); } \OC_Group::deleteGroup('admin'); parent::tearDown(); }
protected function tearDown() { $user = \OC::$server->getUserManager()->get($this->username); if ($user !== null) { $user->delete(); } parent::tearDown(); }
protected function tearDown() { $result = \OC_User::deleteUser(self::$user); $this->assertTrue($result); \OC\Files\Filesystem::tearDown(); \OC\Files\Filesystem::mount($this->originalStorage, array(), '/'); parent::tearDown(); }
protected function tearDown() { // do not drop the table for Oracle as it will create a bogus transaction // that will break the following test suites requiring transactions if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') !== 'oci') { \OC_DB::dropTable('table'); } parent::tearDown(); }
protected function tearDown() { $this->rootView->deleteAll(self::TEST_VERSIONS_USER . '/files/'); $this->rootView->deleteAll(self::TEST_VERSIONS_USER2 . '/files/'); $this->rootView->deleteAll(self::TEST_VERSIONS_USER . '/files_versions/'); $this->rootView->deleteAll(self::TEST_VERSIONS_USER2 . '/files_versions/'); \OC_Hook::clear(); parent::tearDown(); }
protected function tearDown() { foreach ($this->storages as $storage) { $storage->getCache()->clear(); } \OC\Files\Filesystem::clearMounts(); \OC\Files\Filesystem::mount($this->originalStorage, array(), '/'); parent::tearDown(); }
public function tearDown() { $query = $this->connection->prepare('DELETE FROM `*PREFIX*appconfig` WHERE `appid` = ?'); $query->execute(array('testapp')); $query->execute(array('someapp')); $query->execute(array('123456')); $query->execute(array('anotherapp')); $this->registerAppConfig(new \OC\AppConfig(\OC::$server->getDatabaseConnection())); parent::tearDown(); }
protected function tearDown() { $userManager = \OC::$server->getUserManager(); $user1 = $userManager->get($this->user1); if ($user1) { $user1->delete(); } $this->logout(); parent::tearDown(); }
protected function tearDown() { foreach ($this->tmpDirs as $dir) { \OC_Helper::rmdirr($dir); } \OC\Files\Filesystem::clearMounts(); \OC\Files\Filesystem::mount($this->originalStorage, array(), '/'); \OC_User::setUserId(''); parent::tearDown(); }
protected function tearDown() { if ($this->oldServerURI === null) { unset($_SERVER['REQUEST_URI']); } else { $_SERVER['REQUEST_URI'] = $this->oldServerURI; } $_SERVER['SCRIPT_NAME'] = $this->oldScriptName; parent::tearDown(); }
protected function tearDown() { \OC_User::deleteUser($this->user); $sql = 'DELETE FROM `*PREFIX*storages`'; $this->connection->executeQuery($sql); $sql = 'DELETE FROM `*PREFIX*filecache`'; $this->connection->executeQuery($sql); \OCP\Config::setSystemValue('datadirectory', $this->oldDataDir); $this->config->setAppValue('core', 'repairlegacystoragesdone', 'no'); parent::tearDown(); }
public function tearDown() { parent::tearDown(); if (is_null($this->backend)) { return; } $books = $this->backend->getAddressBooksForUser(self::UNIT_TEST_USER); foreach ($books as $book) { $this->backend->deleteAddressBook($book['id']); } }
protected function tearDown() { $this->storage->getCache()->clear(); $sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?'; \OC_DB::executeAudited($sql, [$this->storage->getId()]); $this->clearMimeTypes(); \OC::$server->registerService('MimeTypeLoader', function ($c) { return $this->savedMimetypeLoader; }); parent::tearDown(); }