aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-27 13:10:32 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-28 20:23:50 +0200
commit183fcef39b40608e931f6470ef48182c657bd918 (patch)
tree43ccc3366c8c64c5f8daa6fa94cbf9f9b3d61f91 /tests
parente5e3459a5492394c9475a6543492c6e5805eb10b (diff)
downloadnextcloud-server-183fcef39b40608e931f6470ef48182c657bd918.tar.gz
nextcloud-server-183fcef39b40608e931f6470ef48182c657bd918.zip
fix: Renaming does not need update but delete permissions
Renaming is basically copy + delete (a move), so no need to update permissions. Especially if the node is in a invalid directory the node should be moveable but not editable. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Node/IntegrationTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Files/Node/IntegrationTest.php b/tests/lib/Files/Node/IntegrationTest.php
index 7d87cdb5dd0..fe6fe779ad0 100644
--- a/tests/lib/Files/Node/IntegrationTest.php
+++ b/tests/lib/Files/Node/IntegrationTest.php
@@ -12,6 +12,7 @@ use OC\Files\Storage\Temporary;
use OC\Files\View;
use OC\Memcache\ArrayCache;
use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Files\Config\IUserMountCache;
use OCP\Files\Mount\IMountManager;
use OCP\ICacheFactory;
use OCP\IUserManager;
@@ -46,8 +47,7 @@ class IntegrationTest extends \Test\TestCase {
protected function setUp(): void {
parent::setUp();
- /** @var IMountManager $manager */
- $manager = \OC::$server->get(IMountManager::class);
+ $manager = \OCP\Server::get(IMountManager::class);
\OC_Hook::clear('OC_Filesystem');
@@ -64,7 +64,7 @@ class IntegrationTest extends \Test\TestCase {
$manager,
$this->view,
$user,
- \OC::$server->getUserMountCache(),
+ \OCP\Server::get(IUserMountCache::class),
$this->createMock(LoggerInterface::class),
$this->createMock(IUserManager::class),
$this->createMock(IEventDispatcher::class),