diff --git a/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php b/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php index e206824a75..99a0aec3ec 100644 --- a/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php +++ b/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php @@ -68,7 +68,7 @@ public function testResolveUrlAliasSchemaFallbackToNameSchema(): void * 0: array>, * 1: array>, * 2: array, - * 3: array + * 3: array> * }> */ public static function getDataForTestResolveNameSchema(): iterable @@ -139,7 +139,7 @@ public static function getDataForTestResolveNameSchema(): iterable * @param array> $fieldMap * @param array> $tokenValues * @param array $languageCodes - * @param array $expectedNames + * @param array> $expectedNames */ public function testResolveNameSchema( array $fieldMap, @@ -203,10 +203,10 @@ public static function getDataForTestResolve(): array ['field' => ['text1']], '', [ - 'text1' => ['cro-HR' => new TextLineValue('jedan'), 'eng-GB' => new TextLineValue('one')], - 'text2' => ['cro-HR' => new TextLineValue('Dva'), 'eng-GB' => new TextLineValue('two')], - 'text3' => ['eng-GB' => new TextLineValue('three')], -], + 'text1' => ['cro-HR' => new TextLineValue('jedan'), 'eng-GB' => new TextLineValue('one')], + 'text2' => ['cro-HR' => new TextLineValue('Dva'), 'eng-GB' => new TextLineValue('two')], + 'text3' => ['eng-GB' => new TextLineValue('three')], + ], [ 'eng-GB' => 'one', 'cro-HR' => 'jedan', @@ -220,10 +220,10 @@ public static function getDataForTestResolve(): array ['field' => ['text2']], '', [ - 'text1' => ['cro-HR' => new TextLineValue('jedan'), 'eng-GB' => new TextLineValue('one')], - 'text2' => ['cro-HR' => new TextLineValue('Dva'), 'eng-GB' => new TextLineValue('two')], - 'text3' => ['eng-GB' => new TextLineValue('three')], - ], + 'text1' => ['cro-HR' => new TextLineValue('jedan'), 'eng-GB' => new TextLineValue('one')], + 'text2' => ['cro-HR' => new TextLineValue('Dva'), 'eng-GB' => new TextLineValue('two')], + 'text3' => ['eng-GB' => new TextLineValue('three')], + ], [ 'eng-GB' => 'two', 'cro-HR' => 'dva', @@ -237,10 +237,10 @@ public static function getDataForTestResolve(): array ['field' => ['text2', 'text2']], 'Hello, and and then goodbye and hello again', [ - 'text1' => ['cro-HR' => new TextLineValue('jedan'), 'eng-GB' => new TextLineValue('one')], - 'text2' => ['cro-HR' => new TextLineValue('Dva'), 'eng-GB' => new TextLineValue('two')], - 'text3' => ['eng-GB' => new TextLineValue('three')], - ], + 'text1' => ['cro-HR' => new TextLineValue('jedan'), 'eng-GB' => new TextLineValue('one')], + 'text2' => ['cro-HR' => new TextLineValue('Dva'), 'eng-GB' => new TextLineValue('two')], + 'text3' => ['eng-GB' => new TextLineValue('three')], + ], [ 'eng-GB' => 'Hello, one and two and then goodbye...', 'cro-HR' => 'Hello, jedan and dva and then goodb...',