diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index aade58da5a395..a80d13a01b2d2 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -148,6 +148,10 @@ public function testIndexWithRegularBrowser() { ->with('testuser1') ->willReturn($baseFolderFiles); + $baseFolderFiles->expects($this->any()) + ->method('search') + ->willReturn([]); + $this->config ->expects($this->any()) ->method('getAppValue')