Skip to content

Commit 73cbce4

Browse files
committed
Fix test?
1 parent 62abd97 commit 73cbce4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/rules/QueryPlanAnalyzerRuleTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,37 @@ public function testNotUsingIndex(): void
7474
$this->analyse([__DIR__ . '/data/query-plan-analyzer.php'], [
7575
[
7676
"Query is not using an index on table 'ada'." . $proposal,
77-
12,
77+
13,
7878
$tip,
7979
],
8080
[
8181
"Query is not using an index on table 'ada'." . $proposal,
82-
17,
82+
18,
8383
$tip,
8484
],
8585
[
8686
"Query is not using an index on table 'ada'." . $proposal,
87-
22,
87+
23,
8888
$tip,
8989
],
9090
[
9191
"Query is not using an index on table 'ada'." . $proposal,
92-
23,
92+
24,
9393
$tip,
9494
],
9595
[
9696
"Query is not using an index on table 'ada'." . $proposal,
97-
28,
97+
29,
9898
$tip,
9999
],
100100
[
101101
"Query is not using an index on table 'ada'." . $proposal,
102-
79,
102+
80,
103103
$tip,
104104
],
105105
[
106106
"Query is not using an index on table 'ada'." . $proposal,
107-
80,
107+
81,
108108
$tip,
109109
],
110110
]);
@@ -130,27 +130,27 @@ public function testNotUsingIndexInDebugMode(): void
130130
$this->analyse([__DIR__ . '/data/query-plan-analyzer.php'], [
131131
[
132132
"Query is not using an index on table 'ada'." . $proposal . "\n\nSimulated query: EXPLAIN SELECT * FROM `ada` WHERE email = '[email protected]'",
133-
12,
133+
13,
134134
$tip,
135135
],
136136
[
137137
"Query is not using an index on table 'ada'." . $proposal . "\n\nSimulated query: EXPLAIN SELECT *,adaid FROM `ada` WHERE email = '[email protected]'",
138-
17,
138+
18,
139139
$tip,
140140
],
141141
[
142142
"Query is not using an index on table 'ada'." . $proposal . "\n\nSimulated query: EXPLAIN SELECT * FROM ada WHERE email = '1970-01-01'",
143-
22,
143+
23,
144144
$tip,
145145
],
146146
[
147147
"Query is not using an index on table 'ada'." . $proposal . "\n\nSimulated query: EXPLAIN SELECT * FROM ada WHERE email = '1970-01-01'",
148-
23,
148+
24,
149149
$tip,
150150
],
151151
[
152152
"Query is not using an index on table 'ada'." . $proposal . "\n\nSimulated query: EXPLAIN SELECT * FROM ada WHERE email = '1970-01-01'",
153-
28,
153+
29,
154154
$tip,
155155
],
156156
[
@@ -165,22 +165,22 @@ public function testNotUsingIndexInDebugMode(): void
165165
],
166166
[
167167
'Unresolvable Query: Cannot simulate parameter value for type: mixed.',
168-
61,
168+
62,
169169
UnresolvableQueryMixedTypeException::getTip(),
170170
],
171171
[
172172
'Unresolvable Query: Cannot resolve query with variable type: string.',
173-
67,
173+
68,
174174
UnresolvableQueryStringTypeException::getTip(),
175175
],
176176
[
177177
'Unresolvable Query: Cannot resolve query with variable type: string.',
178-
70,
178+
71,
179179
UnresolvableQueryStringTypeException::getTip(),
180180
],
181181
[
182182
'Unresolvable Query: Cannot resolve query with variable type: string.',
183-
73,
183+
74,
184184
UnresolvableQueryStringTypeException::getTip(),
185185
],
186186
]);

0 commit comments

Comments
 (0)