diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-02 09:19:09 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-02 09:19:09 +0200 |
commit | 262f7d92f08213c57bbe30994dc3975c89747632 (patch) | |
tree | 27bca083791a8996e086b90196bbde92bd71a68e /apps/federatedfilesharing/tests | |
parent | f74e89bde5892a68500eeea3fa98a511b1d7f7e9 (diff) | |
download | nextcloud-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/federatedfilesharing/tests')
-rw-r--r-- | apps/federatedfilesharing/tests/TestCase.php | 13 |
1 files changed, 0 insertions, 13 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); - } } |