Skip to content

Commit

Permalink
Fix dynamic property warning in files_version tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
come-nc committed Sep 5, 2022
1 parent 15c45b5 commit f875642
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 f875642

Please sign in to comment.