Skip to content

Commit bcc032c

Browse files
committed
Remove unnecessary data provider indices
1 parent b535b8b commit bcc032c

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

tests/Unit/Database/Query/Sorter/OrderByChildTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,49 +36,49 @@ public function orderByChild(string $childKey, mixed $expected, mixed $given): v
3636
public static function valueProvider(): Iterator
3737
{
3838
yield 'scalar' => [
39-
'childKey' => 'key',
40-
'expected' => 'scalar',
41-
'given' => 'scalar',
39+
'key',
40+
'scalar',
41+
'scalar',
4242
];
4343
yield 'array' => [
44-
'childKey' => 'key',
45-
'expected' => [
44+
'key',
45+
[
4646
'third' => ['key' => 1],
4747
'fourth' => ['key' => 2],
4848
'first' => ['key' => 3],
4949
'second' => ['key' => 4],
5050
],
51-
'given' => [
51+
[
5252
'first' => ['key' => 3],
5353
'second' => ['key' => 4],
5454
'third' => ['key' => 1],
5555
'fourth' => ['key' => 2],
5656
],
5757
];
5858
yield 'nested' => [
59-
'childKey' => 'child/grandchild',
60-
'expected' => [
59+
'child/grandchild',
60+
[
6161
'third' => ['child' => ['grandchild' => 1]],
6262
'fourth' => ['child' => ['grandchild' => 2]],
6363
'first' => ['child' => ['grandchild' => 3]],
6464
'second' => ['child' => ['grandchild' => 4]],
6565
],
66-
'given' => [
66+
[
6767
'first' => ['child' => ['grandchild' => 3]],
6868
'second' => ['child' => ['grandchild' => 4]],
6969
'third' => ['child' => ['grandchild' => 1]],
7070
'fourth' => ['child' => ['grandchild' => 2]],
7171
],
7272
];
7373
yield 'super_nested' => [
74-
'childKey' => 'child/grandchild/great_grandchild',
75-
'expected' => [
74+
'child/grandchild/great_grandchild',
75+
[
7676
'third' => ['child' => ['grandchild' => ['great_grandchild' => 1]]],
7777
'fourth' => ['child' => ['grandchild' => ['great_grandchild' => 2]]],
7878
'first' => ['child' => ['grandchild' => ['great_grandchild' => 3]]],
7979
'second' => ['child' => ['grandchild' => ['great_grandchild' => 4]]],
8080
],
81-
'given' => [
81+
[
8282
'first' => ['child' => ['grandchild' => ['great_grandchild' => 3]]],
8383
'second' => ['child' => ['grandchild' => ['great_grandchild' => 4]]],
8484
'third' => ['child' => ['grandchild' => ['great_grandchild' => 1]]],

tests/Unit/Database/Query/Sorter/OrderByKeyTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ public function modifyValue(mixed $expected, mixed $given): void
4444
public static function valueProvider(): Iterator
4545
{
4646
yield 'scalar' => [
47-
'expected' => 'scalar',
48-
'given' => 'scalar',
47+
'scalar',
48+
'scalar',
4949
];
5050
yield 'array' => [
51-
'expected' => [
51+
[
5252
'a' => 'any',
5353
'b' => 'any',
5454
'c' => 'any',
5555
'd' => 'any',
5656
],
57-
'given' => [
57+
[
5858
'c' => 'any',
5959
'a' => 'any',
6060
'd' => 'any',

tests/Unit/Database/Query/Sorter/OrderByValueTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ public function modifyValue(mixed $expected, mixed $given): void
4444
public static function valueProvider(): Iterator
4545
{
4646
yield 'scalar' => [
47-
'expected' => 'scalar',
48-
'given' => 'scalar',
47+
'scalar',
48+
'scalar',
4949
];
5050
yield 'array' => [
51-
'expected' => [
51+
[
5252
'third' => 1,
5353
'fourth' => 2,
5454
'first' => 3,
5555
'second' => 4,
5656
],
57-
'given' => [
57+
[
5858
'first' => 3,
5959
'second' => 4,
6060
'third' => 1,

0 commit comments

Comments
 (0)