diff options
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 4 | ||||
-rw-r--r-- | apps/dav/tests/unit/Files/FileSearchBackendTest.php | 8 |
2 files changed, 7 insertions, 5 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); }); diff --git a/apps/dav/tests/unit/Files/FileSearchBackendTest.php b/apps/dav/tests/unit/Files/FileSearchBackendTest.php index cc4dcb62b75..715130d2fae 100644 --- a/apps/dav/tests/unit/Files/FileSearchBackendTest.php +++ b/apps/dav/tests/unit/Files/FileSearchBackendTest.php @@ -86,9 +86,11 @@ class FileSearchBackendTest extends TestCase { ->disableOriginalConstructor() ->getMock(); - $this->view = $this->getMockBuilder(View::class) - ->disableOriginalConstructor() - ->getMock(); + $this->view = $this->createMock(View::class); + + $this->view->expects($this->any()) + ->method('getRoot') + ->willReturn(''); $this->view->expects($this->any()) ->method('getRelativePath') |