Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-25 18:05:45 +0300
committerGitHub <noreply@github.com>2022-08-25 18:05:45 +0300
commit696a48ae975d7f9cf1ea80d35e6d93c103daa7c3 (patch)
treec5b1ff34b7d1952efe5d90c1d9770aff983e4434 /apps
parent5509063caac2964bea8e33d272238f266ca6749b (diff)
parent262f7d92f08213c57bbe30994dc3975c89747632 (diff)
Merge pull request #33430 from nextcloud/fix/remove-broken-resetstorage
Remove broken function resetStorage from test cases
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/tests/TestCase.php13
-rw-r--r--apps/files_sharing/tests/TestCase.php13
2 files changed, 0 insertions, 26 deletions
diff --git a/apps/federatedfilesharing/tests/TestCase.php b/apps/federatedfilesharing/tests/TestCase.php
index dbd1df38c74..f96f1ab764f 100644
--- a/apps/federatedfilesharing/tests/TestCase.php
+++ b/apps/federatedfilesharing/tests/TestCase.php
@@ -106,8 +106,6 @@ abstract class TestCase extends \Test\TestCase {
}
}
- self::resetStorage();
-
\OC_Util::tearDownFS();
\OC::$server->getUserSession()->setUser(null);
\OC\Files\Filesystem::tearDown();
@@ -116,15 +114,4 @@ abstract class TestCase extends \Test\TestCase {
\OC_Util::setupFS($user);
}
-
- /**
- * 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);
- }
}
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