8000 minor #20640 [HttpFoundation] Fix isMethodSafe test for cacheables (c… · symfony/symfony@777cdfc · GitHub
[go: up one dir, main page]

Skip to content

Commit 777cdfc

Browse files
minor #20640 [HttpFoundation] Fix isMethodSafe test for cacheables (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] Fix isMethodSafe test for cacheables | Q | A | ------------- | --- | Branch? | 2.7 | Tests pass? | yes | License | MIT Commits ------- 2699009 [HttpFoundation] Fix test ensuring isMethodSafe() checks cacheable
2 parents e62b602 + 2699009 commit 777cdfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ public function methodSafeProvider()
19511951
public function testMethodSafeChecksCacheable()
19521952
{
19531953
$request = new Request();
1954-
$request->setMethod('OPTION');
1954+
$request->setMethod('OPTIONS');
19551955
$this->assertFalse($request->isMethodSafe());
19561956
}
19571957

0 commit comments

Comments
 (0)
0