summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-02 09:19:09 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-02 09:19:09 +0200
commit262f7d92f08213c57bbe30994dc3975c89747632 (patch)
tree27bca083791a8996e086b90196bbde92bd71a68e /apps/files_sharing
parentf74e89bde5892a68500eeea3fa98a511b1d7f7e9 (diff)
downloadnextcloud-server-262f7d92f08213c57bbe30994dc3975c89747632.tar.gz
nextcloud-server-262f7d92f08213c57bbe30994dc3975c89747632.zip
Remove broken function resetStorage from test cases
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/TestCase.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/files_sharing/tests/TestCase.php b/apps/files_sharing/tests/TestCase.php
index 234ea2c69c8..d4077c84816 100644
--- a/apps/files_sharing/tests/TestCase.php
+++ b/apps/files_sharing/tests/TestCase.php
@@ -201,8 +201,6 @@ abstract class TestCase extends \Test\TestCase {
}
}
- self::resetStorage();
-
\OC_Util::tearDownFS();
\OC\Files\Cache\Storage::getGlobalCache()->clearCache();
\OC::$server->getUserSession()->setUser(null);
@@ -214,17 +212,6 @@ abstract class TestCase extends \Test\TestCase {
}
/**
- * reset init status for the share storage
- */
- protected static function resetStorage() {
- $storage = new \ReflectionClass('\OCA\Files_Sharing\SharedStorage');
- $isInitialized = $storage->getProperty('initialized');
- $isInitialized->setAccessible(true);
- $isInitialized->setValue($storage, false);
- $isInitialized->setAccessible(false);
- }
-
- /**
* get some information from a given share
* @param int $shareID
* @return array with: item_source, share_type, share_with, item_type, permissions