aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-05-30 19:13:53 +0200
committerGitHub <noreply@github.com>2024-05-30 19:13:53 +0200
commit7f745a1ed00c18414146a685256df43614679586 (patch)
tree6a91c83b68b0756d6c58d8b6027da5cfdcb51fe3 /tests/lib
parent928f22052f3fb52c78c91e5c993702ab673c0dc6 (diff)
parent5866e49b3ab5cb346631fb3b557be951144c7ac2 (diff)
downloadnextcloud-server-7f745a1ed00c18414146a685256df43614679586.tar.gz
nextcloud-server-7f745a1ed00c18414146a685256df43614679586.zip
Merge branch 'master' into refactor/OC-Server-getSecureRandom
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/InstallerTest.php6
-rw-r--r--tests/lib/L10N/L10nTest.php3
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/InstallerTest.php b/tests/lib/InstallerTest.php
index 3a62a57fdab..1fd48ea4fc9 100644
--- a/tests/lib/InstallerTest.php
+++ b/tests/lib/InstallerTest.php
@@ -51,7 +51,7 @@ class InstallerTest extends TestCase {
$config->setSystemValue('appstoreenabled', true);
$installer = new Installer(
\OC::$server->get(AppFetcher::class),
- \OC::$server->getHTTPClientService(),
+ \OC::$server->get(IClientService::class),
\OC::$server->getTempManager(),
\OC::$server->get(LoggerInterface::class),
$config,
@@ -74,7 +74,7 @@ class InstallerTest extends TestCase {
protected function tearDown(): void {
$installer = new Installer(
\OC::$server->get(AppFetcher::class),
- \OC::$server->getHTTPClientService(),
+ \OC::$server->get(IClientService::class),
\OC::$server->getTempManager(),
\OC::$server->get(LoggerInterface::class),
\OC::$server->getConfig(),
@@ -98,7 +98,7 @@ class InstallerTest extends TestCase {
// Install app
$installer = new Installer(
\OC::$server->get(AppFetcher::class),
- \OC::$server->getHTTPClientService(),
+ \OC::$server->get(IClientService::class),
\OC::$server->getTempManager(),
\OC::$server->get(LoggerInterface::class),
\OC::$server->getConfig(),
diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php
index 9a6d119330b..38d0a5626b0 100644
--- a/tests/lib/L10N/L10nTest.php
+++ b/tests/lib/L10N/L10nTest.php
@@ -15,6 +15,7 @@ use OCP\ICacheFactory;
use OCP\IConfig;
use OCP\IRequest;
use OCP\IUserSession;
+use OCP\L10N\IFactory;
use Test\TestCase;
/**
@@ -219,7 +220,7 @@ class L10nTest extends TestCase {
public function testFindLanguageFromLocale($locale, $language) {
$this->assertEquals(
$language,
- \OC::$server->getL10NFactory()->findLanguageFromLocale('lib', $locale)
+ \OC::$server->get(IFactory::class)->findLanguageFromLocale('lib', $locale)
);
}