diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-09-12 16:38:35 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-09-13 10:08:44 +0200 |
commit | 76f2bc0bfc86a9d1ed34d37c574c7e7a327c0fab (patch) | |
tree | 74bb396c0324eca612b1cec1ec2f0c20a77fb942 /tests | |
parent | 7ed583cb8ee64f77696b0e23f79d8d1b4038bcbc (diff) | |
download | nextcloud-server-76f2bc0bfc86a9d1ed34d37c574c7e7a327c0fab.tar.gz nextcloud-server-76f2bc0bfc86a9d1ed34d37c574c7e7a327c0fab.zip |
fix: Replace OC_App::getAllApps with a method in AppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/IntegrityCheck/CheckerTest.php | 4 | ||||
-rw-r--r-- | tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/lib/IntegrityCheck/CheckerTest.php b/tests/lib/IntegrityCheck/CheckerTest.php index bf4ea16f564..05607f8113c 100644 --- a/tests/lib/IntegrityCheck/CheckerTest.php +++ b/tests/lib/IntegrityCheck/CheckerTest.php @@ -1030,9 +1030,9 @@ class CheckerTest extends TestCase { $this->checker ->expects($this->once()) ->method('verifyCoreSignature'); - $this->appLocator + $this->appManager ->expects($this->once()) - ->method('getAllApps') + ->method('getAllAppsInAppsFolders') ->willReturn([ 'files', 'calendar', diff --git a/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php b/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php index a86507f6bb2..d99a42e0d63 100644 --- a/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php +++ b/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php @@ -30,8 +30,4 @@ class AppLocatorTest extends TestCase { $this->locator->getAppPath('aTotallyNotExistingApp'); } - - public function testGetAllApps() { - $this->assertSame(\OC_App::getAllApps(), $this->locator->getAllApps()); - } } |