aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php3
-rw-r--r--tests/lib/Route/RouterTest.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 56cc7d7c6f8..dd76e814054 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -94,6 +94,9 @@ class ViewControllerTest extends TestCase {
$this->appManager->expects($this->any())
->method('getAppPath')
->willReturnCallback(fn (string $appid): string => \OC::$SERVERROOT . '/apps/' . $appid);
+ $this->appManager->expects($this->any())
+ ->method('isAppLoaded')
+ ->willReturn(true);
$this->cacheFactory = $this->createMock(ICacheFactory::class);
$this->logger = $this->createMock(LoggerInterface::class);
diff --git a/tests/lib/Route/RouterTest.php b/tests/lib/Route/RouterTest.php
index 6f253d9121f..f99ebe4767f 100644
--- a/tests/lib/Route/RouterTest.php
+++ b/tests/lib/Route/RouterTest.php
@@ -63,6 +63,9 @@ class RouterTest extends TestCase {
$this->appManager->expects(self::atLeastOnce())
->method('getAppPath')
->willReturnCallback(fn (string $appid): string => \OC::$SERVERROOT . '/apps/' . $appid);
+ $this->appManager->expects(self::atLeastOnce())
+ ->method('isAppLoaded')
+ ->willReturn(true);
$this->assertEquals('/index.php/apps/files/', $this->router->generate('files.view.index'));