diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-31 21:13:58 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-01 11:31:26 +0200 |
commit | cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2 (patch) | |
tree | 9f1f2a75dd81b96ff899f9b28a1788cc2d6b88e3 /tests/lib | |
parent | 2be74ee175c4516320436c39e8cf49f9fe6f587b (diff) | |
download | nextcloud-server-cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2.tar.gz nextcloud-server-cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2.zip |
chore: Drop \OC_App::getAppVersion
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/InstallerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/InstallerTest.php b/tests/lib/InstallerTest.php index 352580337ad..60c8ac1cc94 100644 --- a/tests/lib/InstallerTest.php +++ b/tests/lib/InstallerTest.php @@ -11,6 +11,7 @@ namespace Test; use OC\App\AppStore\Fetcher\AppFetcher; use OC\Archive\ZIP; use OC\Installer; +use OCP\App\IAppManager; use OCP\Http\Client\IClient; use OCP\Http\Client\IClientService; use OCP\IConfig; @@ -88,7 +89,7 @@ class InstallerTest extends TestCase { public function testInstallApp() { // Read the current version of the app to check for bug #2572 - \OC_App::getAppVersion('testapp'); + \OCP\Server::get(IAppManager::class)->getAppVersion('testapp', true); // Extract app $pathOfTestApp = __DIR__ . '/../data/testapp.zip'; |