mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Merge pull request #33430 from nextcloud/fix/remove-broken-resetstorage
Remove broken function resetStorage from test cases
This commit is contained in:
commit
696a48ae97
2 changed files with 0 additions and 26 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
@ -213,17 +211,6 @@ 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* get some information from a given share
|
||||
* @param int $shareID
|
||||
|
|
|
|||
Loading…
Reference in a new issue