diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-02-24 16:23:21 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2025-02-24 17:48:34 +0100 |
commit | e2a46492577e95ad5d790befaa62d74eb2393b87 (patch) | |
tree | bae829e22b4986f3753da2bab30160454583212b /apps/files | |
parent | 34139987d609386c3351c46fd60b0f932795b6df (diff) | |
download | nextcloud-server-e2a46492577e95ad5d790befaa62d74eb2393b87.tar.gz nextcloud-server-e2a46492577e95ad5d790befaa62d74eb2393b87.zip |
fix(tests): Adapt tests to appManager usage
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/tests/Controller/ViewControllerTest.php | 3 |
1 files changed, 3 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); |