Skip to content

Commit

Permalink
Merge pull request #33905 from nextcloud/fix/fix-dynamic-property-in-…
Browse files Browse the repository at this point in the history
…files_version-test

Fix dynamic property warning in files_version tests
  • Loading branch information
blizzz authored Sep 6, 2022
2 parents 2c08e6f + f875642 commit f447972
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/files_versions/tests/VersioningTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -949,12 +949,6 @@ public static function loginHelper($user, $create = false) {
\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();
Expand Down

0 comments on commit f447972

Please sign in to comment.