Skip to content

Commit 43284c1

Browse files
committed
test: update test expectations
1 parent 3f2c18f commit 43284c1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎tests/system/Commands/Utilities/Routes/FilterFinderTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testFindGlobalsAndRouteFilters(): void
145145
$filters = $finder->find('admin');
146146

147147
$expected = [
148-
'before' => ['honeypot', 'csrf'],
148+
'before' => ['csrf', 'honeypot'],
149149
'after' => ['honeypot', 'toolbar'],
150150
];
151151
$this->assertSame($expected, $filters);
@@ -163,7 +163,7 @@ public function testFindGlobalsAndRouteClassnameFilters(): void
163163
$filters = $finder->find('admin');
164164

165165
$expected = [
166-
'before' => [InvalidChars::class, 'csrf'],
166+
'before' => ['csrf', InvalidChars::class],
167167
'after' => [InvalidChars::class, 'toolbar'],
168168
];
169169
$this->assertSame($expected, $filters);
@@ -181,7 +181,7 @@ public function testFindGlobalsAndRouteMultipleFilters(): void
181181
$filters = $finder->find('admin');
182182

183183
$expected = [
184-
'before' => ['honeypot', InvalidChars::class, 'csrf'],
184+
'before' => ['csrf', 'honeypot', InvalidChars::class],
185185
'after' => ['honeypot', InvalidChars::class, 'toolbar'],
186186
];
187187
$this->assertSame($expected, $filters);

‎tests/system/Filters/FiltersTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ public function testProcessMethodProcessesCombinedAfterForToolbar(): void
406406
$expected = [
407407
'before' => ['bar'],
408408
'after' => [
409-
'bazg',
410409
'foof',
410+
'bazg',
411411
'toolbar',
412412
],
413413
];
@@ -1049,8 +1049,8 @@ public function testMatchesURICaseInsensitively(): void
10491049
'frak',
10501050
],
10511051
'after' => [
1052-
'baz',
10531052
'frak',
1053+
'baz',
10541054
],
10551055
];
10561056
$this->assertSame($expected, $filters->initialize($uri)->getFilters());

0 commit comments

Comments
 (0)