Skip to content

Commit

Permalink
fixed typing for arrays in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sztig committed Feb 5, 2025
1 parent cb81e71 commit e435ded
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/lib/Repository/NameSchema/NameSchemaServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function testResolveUrlAliasSchemaFallbackToNameSchema(): void
* 0: array<int|string, array<string, \Ibexa\Contracts\Core\FieldType\Value>>,
* 1: array<string, array<string, string>>,
* 2: array<string>,
* 3: array<string, string>
* 3: array<int, array<string, string>>
* }>
*/
public static function getDataForTestResolveNameSchema(): iterable
Expand Down Expand Up @@ -139,7 +139,7 @@ public static function getDataForTestResolveNameSchema(): iterable
* @param array<int|string, array<string, \Ibexa\Contracts\Core\FieldType\Value>> $fieldMap
* @param array<string, array<string, string>> $tokenValues
* @param array<string> $languageCodes
* @param array<string, string> $expectedNames
* @param array<int, array<string, string>> $expectedNames
*/
public function testResolveNameSchema(
array $fieldMap,
Expand Down Expand Up @@ -203,10 +203,10 @@ public static function getDataForTestResolve(): array
['field' => ['text1']],
'<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',
Expand All @@ -220,10 +220,10 @@ public static function getDataForTestResolve(): array
['field' => ['text2']],
'<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',
Expand All @@ -237,10 +237,10 @@ public static function getDataForTestResolve(): array
['field' => ['text2', 'text2']],
'Hello, <text1> and <text2> 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...',
Expand Down

0 comments on commit e435ded

Please sign in to comment.