Ejemplo n.º 1
0
 protected function tearDown()
 {
     $qb = $this->connection->getQueryBuilder();
     $qb->delete('share');
     $qb->execute();
     return parent::tearDown();
 }
Ejemplo n.º 2
0
 protected function tearDown()
 {
     foreach ($this->tmpDirs as $dir) {
         \OC_Helper::rmdirr($dir);
     }
     parent::tearDown();
 }
Ejemplo n.º 3
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
Ejemplo n.º 4
0
 public function tearDown()
 {
     unset($this->backend);
     unset($this->ab);
     Utils\Properties::purgeIndexes($this->contactIds);
     parent::tearDown();
 }
Ejemplo n.º 5
0
 protected function tearDown()
 {
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
Ejemplo n.º 6
0
 public function tearDown()
 {
     $userManager = \OC::$server->getUserManager();
     $userManager->get($this->user)->delete();
     unset($_SERVER['HTTP_OC_CHUNKED']);
     parent::tearDown();
 }
Ejemplo n.º 7
0
 protected function tearDown()
 {
     if ($this->instance) {
         $this->instance->clear();
     }
     parent::tearDown();
 }
Ejemplo n.º 8
0
 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();
 }
Ejemplo n.º 9
0
 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();
 }
Ejemplo n.º 10
0
 protected function tearDown()
 {
     $conn = \OC_DB::getConnection();
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`');
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`');
     parent::tearDown();
 }
Ejemplo n.º 11
0
 protected function tearDown()
 {
     $conn = \OC::$server->getDatabaseConnection();
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`');
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`');
     parent::tearDown();
 }
Ejemplo n.º 12
0
 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();
 }
Ejemplo n.º 13
0
 protected function tearDown()
 {
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     $this->logout();
     \OC_User::deleteUser($this->user);
     \OC_Hook::clear();
     parent::tearDown();
 }
Ejemplo n.º 14
0
 protected function tearDown()
 {
     \OC_User::setIncognitoMode(false);
     // Set old user
     \OC_User::setUserId($this->oldUser);
     \OC_Util::setupFS($this->oldUser);
     parent::tearDown();
 }
Ejemplo n.º 15
0
 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();
 }
Ejemplo n.º 16
0
 protected function tearDown()
 {
     foreach ($this->storages as $storage) {
         $storage->getCache()->clear();
     }
     $this->logout();
     parent::tearDown();
 }
Ejemplo n.º 17
0
 protected function tearDown()
 {
     foreach ($this->users as $user) {
         $user->delete();
     }
     $this->groupManager->get('admin')->delete();
     parent::tearDown();
 }
Ejemplo n.º 18
0
 protected function tearDown()
 {
     foreach ($this->users as $user) {
         \OC_User::deleteUser($user);
     }
     \OC_Group::deleteGroup('admin');
     parent::tearDown();
 }
Ejemplo n.º 19
0
 protected function tearDown()
 {
     $user = \OC::$server->getUserManager()->get($this->username);
     if ($user !== null) {
         $user->delete();
     }
     parent::tearDown();
 }
Ejemplo n.º 20
0
 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();
 }
Ejemplo n.º 21
0
 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();
 }
Ejemplo n.º 22
0
 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();
 }
Ejemplo n.º 23
0
 protected function tearDown()
 {
     foreach ($this->storages as $storage) {
         $storage->getCache()->clear();
     }
     \OC\Files\Filesystem::clearMounts();
     \OC\Files\Filesystem::mount($this->originalStorage, array(), '/');
     parent::tearDown();
 }
Ejemplo n.º 24
0
	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();
	}
Ejemplo n.º 25
0
 protected function tearDown()
 {
     $userManager = \OC::$server->getUserManager();
     $user1 = $userManager->get($this->user1);
     if ($user1) {
         $user1->delete();
     }
     $this->logout();
     parent::tearDown();
 }
Ejemplo n.º 26
0
 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();
 }
Ejemplo n.º 27
0
 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();
 }
Ejemplo n.º 29
0
 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']);
     }
 }
Ejemplo n.º 30
0
 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();
 }