Skip to content

Commit 205e999

Browse files
committed
Fix phpunit pipeline error
1 parent ccdd401 commit 205e999

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/HtmlResponseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*/
2828
#[CoversClass(HtmlResponse::class)]
2929
#[UsesClass(StatusCode::class)]
30+
#[UsesClass(ContentType::class)]
3031
final class HtmlResponseTest extends TestCase
3132
{
3233
public function testConstructorWillSetHtmlBodyAndContentType(): void

tests/JsonResponseTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*/
3131
#[CoversClass(JsonResponse::class)]
3232
#[UsesClass(JsonStream::class)]
33+
#[UsesClass(ContentType::class)]
3334
final class JsonResponseTest extends TestCase
3435
{
3536
public function testClassImplementsJsonResponseInterface(): void
@@ -44,7 +45,7 @@ public function testConstructorWillInitializeWithCharset(string $charset): void
4445

4546
$response = new JsonResponse($payload, $charset);
4647

47-
self::assertSame(['success' => true], $response->getPayload());
48+
self::assertSame($payload, $response->getPayload());
4849
self::assertInstanceOf(PayloadStreamInterface::class, $response->getBody());
4950
self::assertSame(ContentType::ApplicationJson, ContentType::fromHeaderString($response->getHeaderLine('Content-Type')));
5051
self::assertSame($charset, ContentType::getCharset($response->getHeaderLine('Content-Type')));

0 commit comments

Comments
 (0)