Skip to content

Commit 29b83ab

Browse files
committed
Fix tests
1 parent e759b9d commit 29b83ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/Unit/HttpWorkerTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ final class HttpWorkerTest extends TestCase
3030
'uri' => 'http://localhost',
3131
'attributes' => [Request::PARSED_BODY_ATTRIBUTE_NAME => false],
3232
'query' => ['first' => 'value', 'arr' => ['foo bar', 'baz']],
33-
'parsed' => false
33+
'parsed' => false,
34+
'body' => 'foo'
3435
];
3536

3637
#[DataProvider('requestDataProvider')]
@@ -39,7 +40,7 @@ public function testWaitRequestFromArray(array $header, array $expected): void
3940
$worker = $this->createMock(WorkerInterface::class);
4041
$worker->expects($this->once())
4142
->method('waitPayload')
42-
->willReturn(new Payload(null, \json_encode($header)));
43+
->willReturn(new Payload('foo', \json_encode($header)));
4344

4445
$worker = new HttpWorker($worker);
4546

@@ -54,7 +55,7 @@ public function testWaitRequestFromProto(array $header, array $expected): void
5455
$worker = $this->createMock(WorkerInterface::class);
5556
$worker->expects($this->once())
5657
->method('waitPayload')
57-
->willReturn(new Payload(null, $request->serializeToString()));
58+
->willReturn(new Payload('foo', $request->serializeToString()));
5859

5960
$worker = new HttpWorker($worker);
6061

0 commit comments

Comments
 (0)