aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-09-18 11:13:30 +0200
committerJoas Schilling <coding@schilljs.com>2024-09-23 17:00:07 +0200
commit82566c5479b7cf3374501a1e6b113680ae75afee (patch)
tree697896f4b5d64a1a1b77e5a50a13a4274c793e30 /tests
parent242f89afb3312f04bbbf7951d9a71092f15978a1 (diff)
downloadnextcloud-server-82566c5479b7cf3374501a1e6b113680ae75afee.tar.gz
nextcloud-server-82566c5479b7cf3374501a1e6b113680ae75afee.zip
fix(rtl): Make clear that the direction is based on languagefeat/31420/bidi-backend-support
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/L10N/FactoryTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/L10N/FactoryTest.php b/tests/lib/L10N/FactoryTest.php
index 510c165eba9..c29c31bf650 100644
--- a/tests/lib/L10N/FactoryTest.php
+++ b/tests/lib/L10N/FactoryTest.php
@@ -776,7 +776,7 @@ class FactoryTest extends TestCase {
self::assertInstanceOf(ILanguageIterator::class, $iterator);
}
- public static function languagesWithRespectedDirection():array {
+ public static function dataGetLanguageDirection(): array {
return [
['en', 'ltr'],
['de', 'ltr'],
@@ -786,11 +786,11 @@ class FactoryTest extends TestCase {
}
/**
- * @dataProvider languagesWithRespectedDirection
+ * @dataProvider dataGetLanguageDirection
*/
- public function testDirectionOfLocales(string $locale, string $expectedDirection) {
+ public function testGetLanguageDirection(string $language, string $expectedDirection) {
$factory = $this->getFactory();
- self::assertEquals($expectedDirection, $factory->getLanguageDirectionFromLocale($locale));
+ self::assertEquals($expectedDirection, $factory->getLanguageDirection($language));
}
}