Skip to content

Commit bd8a0fd

Browse files
committed
test: change Filters::$methods keys to uppercase
1 parent 25ef2dc commit bd8a0fd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/system/Filters/FiltersTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testProcessMethodDetectsCLI(): void
8989
'aliases' => ['foo' => ''],
9090
'globals' => [],
9191
'methods' => [
92-
'cli' => ['foo'],
92+
'CLI' => ['foo'],
9393
],
9494
];
9595
$filtersConfig = $this->createConfigFromArray(FiltersConfig::class, $config);
@@ -113,7 +113,7 @@ public function testProcessMethodDetectsGetRequests(): void
113113
'aliases' => ['foo' => ''],
114114
'globals' => [],
115115
'methods' => [
116-
'get' => ['foo'],
116+
'GET' => ['foo'],
117117
],
118118
];
119119
$filtersConfig = $this->createConfigFromArray(FiltersConfig::class, $config);
@@ -137,8 +137,8 @@ public function testProcessMethodRespectsMethod(): void
137137
],
138138
'globals' => [],
139139
'methods' => [
140-
'post' => ['foo'],
141-
'get' => ['bar'],
140+
'POST' => ['foo'],
141+
'GET' => ['bar'],
142142
],
143143
];
144144
$filtersConfig = $this->createConfigFromArray(FiltersConfig::class, $config);
@@ -162,8 +162,8 @@ public function testProcessMethodIgnoresMethod(): void
162162
],
163163
'globals' => [],
164164
'methods' => [
165-
'post' => ['foo'],
166-
'get' => ['bar'],
165+
'POST' => ['foo'],
166+
'GET' => ['bar'],
167167
],
168168
];
169169
$filtersConfig = $this->createConfigFromArray(FiltersConfig::class, $config);
@@ -348,8 +348,8 @@ public function testProcessMethodProcessesCombined(): void
348348
],
349349
],
350350
'methods' => [
351-
'post' => ['foo'],
352-
'get' => ['bar'],
351+
'POST' => ['foo'],
352+
'GET' => ['bar'],
353353
],
354354
'filters' => [
355355
'foof' => [
@@ -391,7 +391,7 @@ public function testProcessMethodProcessesCombinedAfterForToolbar(): void
391391
],
392392
],
393393
'methods' => [
394-
'get' => ['bar'],
394+
'GET' => ['bar'],
395395
],
396396
'filters' => [
397397
'foof' => [

0 commit comments

Comments
 (0)