8000 minor #51300 [PsrHttpMessageBridge] Don't skip JSON tests (derrabus) · symfony/symfony@b785a17 · GitHub
[go: up one dir, main page]

Skip to content

Commit b785a17

Browse files
committed
minor #51300 [PsrHttpMessageBridge] Don't skip JSON tests (derrabus)
This PR was merged into the 6.4 branch. Discussion ---------- [PsrHttpMessageBridge] Don't skip JSON tests | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A This feature does not depend on the presence of the `getPayload()` method anymore. Commits ------- 67ed8ff [PsrHttpMessageBridge] Don't skip JSON tests
2 parents b4d215c + 67ed8ff commit b785a17

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/PsrHttpFactoryTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,6 @@ public function testUploadErrNoFile()
243243

244244
public function testJsonContent()
245245
{
246-
if (!method_exists(Request::class, 'getPayload')) {
247-
$this->markTestSkipped();
248-
}
249-
250246
$headers = [
251247
'HTTP_HOST' => 'http_host.fr',
252248
'CONTENT_TYPE' => 'application/json',
@@ -259,10 +255,6 @@ public function testJsonContent()
259255

260256
public function testEmptyJsonContent()
261257
{
262-
if (!method_exists(Request::class, 'getPayload')) {
263-
$this->markTestSkipped();
264-
}
265-
266258
$headers = [
267259
'HTTP_HOST' => 'http_host.fr',
268260
'CONTENT_TYPE' => 'application/json',
@@ -275,10 +267,6 @@ public function testEmptyJsonContent()
275267

276268
public function testWrongJsonContent()
277269
{
278-
if (!method_exists(Request::class, 'getPayload')) {
279-
$this->markTestSkipped();
280-
}
281-
282270
$headers = [
283271
'HTTP_HOST' => 'http_host.fr',
284272
'CONTENT_TYPE' => 'application/json',

0 commit comments

Comments
 (0)
0