aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-02-23 18:29:08 +0100
committerRobin Appelman <robin@icewind.nl>2022-03-04 16:29:59 +0100
commit1c468129afa2b2ec4a370a879f8eaffd22768baf (patch)
tree1c096e8c0a62371965104684e1f1bf2ef55eb2d4 /lib/private/Files
parent5c0fe934988960ece3ac71d5a1dfc8df405413aa (diff)
downloadnextcloud-server-1c468129afa2b2ec4a370a879f8eaffd22768baf.tar.gz
nextcloud-server-1c468129afa2b2ec4a370a879f8eaffd22768baf.zip
adjust tests to new fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Filesystem.php4
-rw-r--r--lib/private/Files/Node/Root.php4
-rw-r--r--lib/private/Files/SetupManager.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index 0c444d5cd34..71a6385bce1 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -43,7 +43,7 @@ use OC\Files\Mount\MountPoint;
use OC\Lockdown\Filesystem\NullStorage;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Config\IMountProvider;
-use OCP\Files\Events\Node\FilesystemTearedDownEvent;
+use OCP\Files\Events\Node\FilesystemTornDownEvent;
use OCP\Files\NotFoundException;
use OCP\Files\Storage\IStorageFactory;
use OCP\ILogger;
@@ -336,7 +336,7 @@ class Filesystem {
self::$defaultInstance = new View($root);
/** @var IEventDispatcher $eventDispatcher */
$eventDispatcher = \OC::$server->get(IEventDispatcher::class);
- $eventDispatcher->addListener(FilesystemTearedDownEvent::class, function () {
+ $eventDispatcher->addListener(FilesystemTornDownEvent::class, function () {
self::$defaultInstance = null;
self::$usersSetup = [];
self::$loaded = false;
diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php
index 6f47b49c66a..4e4dc0ec0de 100644
--- a/lib/private/Files/Node/Root.php
+++ b/lib/private/Files/Node/Root.php
@@ -40,7 +40,7 @@ use OC\Hooks\PublicEmitter;
use OC\User\NoUserException;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Config\IUserMountCache;
-use OCP\Files\Events\Node\FilesystemTearedDownEvent;
+use OCP\Files\Events\Node\FilesystemTornDownEvent;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
@@ -102,7 +102,7 @@ class Root extends Folder implements IRootFolder {
$this->userMountCache = $userMountCache;
$this->logger = $logger;
$this->userManager = $userManager;
- $eventDispatcher->addListener(FilesystemTearedDownEvent::class, function () {
+ $eventDispatcher->addListener(FilesystemTornDownEvent::class, function () {
$this->userFolderCache = new CappedMemoryCache();
});
}
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 20be8178676..578372775ac 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -38,7 +38,7 @@ use OCP\Constants;
use OCP\Diagnostics\IEventLogger;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Config\IMountProviderCollection;
-use OCP\Files\Events\Node\FilesystemTearedDownEvent;
+use OCP\Files\Events\Node\FilesystemTornDownEvent;
use OCP\Files\Mount\IMountManager;
use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage\IStorage;
@@ -201,6 +201,6 @@ class SetupManager {
$this->setupUsers = [];
$this->rootSetup = false;
$this->mountManager->clear();
- $this->eventDispatcher->dispatchTyped(new FilesystemTearedDownEvent());
+ $this->eventDispatcher->dispatchTyped(new FilesystemTornDownEvent());
}
}