diff options
author | Andrew Summers <18727110+summersab@users.noreply.github.com> | 2023-08-29 15:25:03 -0500 |
---|---|---|
committer | Andrew Summers <18727110+summersab@users.noreply.github.com> | 2023-08-29 21:30:42 -0500 |
commit | f80282a5ed1891224e3fa71c69ca2d60412c4c63 (patch) | |
tree | c7317195eeffd2f082de44050023618afcddf3df /tests | |
parent | 9d1547f59d53b46ba401ddf0e7f4c6e4f067004e (diff) | |
download | nextcloud-server-f80282a5ed1891224e3fa71c69ca2d60412c4c63.tar.gz nextcloud-server-f80282a5ed1891224e3fa71c69ca2d60412c4c63.zip |
Refactor `OC\Server::getL10NFactory`
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/L10N/L10nTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php index bd1fce29547..21be2bbf395 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; /** @@ -218,7 +219,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) ); } |