aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-20 22:12:00 +0100
committerSimon L <szaimen@e.mail.de>2023-04-17 23:46:52 +0200
commitd9c81f56ad25d6665e87468cf18dc2646334fb3b (patch)
tree42859dc2a51ad4613423df4d3fece13fbd3ee6c2 /apps/dav/tests/unit/Connector/Sabre
parent160bd75d0ad59b3692ae2e904be52c9e4e7295f4 (diff)
downloadnextcloud-server-d9c81f56ad25d6665e87468cf18dc2646334fb3b.tar.gz
nextcloud-server-d9c81f56ad25d6665e87468cf18dc2646334fb3b.zip
tests: Adapt node related unit tests mocks to required root view
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php4
1 files changed, 2 insertions, 2 deletions
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);
});