From d9c81f56ad25d6665e87468cf18dc2646334fb3b Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 20 Feb 2023 22:12:00 +0100 Subject: tests: Adapt node related unit tests mocks to required root view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/dav/tests/unit/Connector/Sabre') diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index b0d3bdd8ec7..0f41ff97cc6 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php @@ -218,13 +218,13 @@ class DirectoryTest extends \Test\TestCase { $this->view->expects($this->any()) ->method('getRelativePath') - ->willReturnCallback(function($path) { + ->willReturnCallback(function ($path) { return str_replace('/admin/files/', '', $path); }); $this->view->expects($this->any()) ->method('getAbsolutePath') - ->willReturnCallback(function($path) { + ->willReturnCallback(function ($path) { return Filesystem::normalizePath('/admin/files' . $path); }); -- cgit v1.2.3