summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-05 17:53:41 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-05 17:53:41 +0200
commitf8756429987ef392b6d0a8e2731d3bd69ee7f804 (patch)
tree29b77dbf724c4230580069d43c05c0433d4da9ee /apps/files_versions
parent15c45b5ef579122563e17cdf3e0972de64dca99f (diff)
downloadnextcloud-server-f8756429987ef392b6d0a8e2731d3bd69ee7f804.tar.gz
nextcloud-server-f8756429987ef392b6d0a8e2731d3bd69ee7f804.zip
Fix dynamic property warning in files_version tests
The code had no effect as $storage is not an instance of SharedStorage, the call to setValue failed with a warning. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/tests/VersioningTest.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index 952298b3ef9..b8f58ecff2b 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -949,12 +949,6 @@ class VersioningTest extends \Test\TestCase {
\OC::$server->getUserManager()->registerBackend($backend);
}
- $storage = new \ReflectionClass('\OCA\Files_Sharing\SharedStorage');
- $isInitialized = $storage->getProperty('initialized');
- $isInitialized->setAccessible(true);
- $isInitialized->setValue($storage, false);
- $isInitialized->setAccessible(false);
-
\OC_Util::tearDownFS();
\OC_User::setUserId('');
\OC\Files\Filesystem::tearDown();