Skip to content

Commit bf4b687

Browse files
committed
fix: update test after rebase
1 parent a3edb8d commit bf4b687

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

tests/Integration/Mapper/PsrRequestToRequestMapperTest.php

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,23 +99,16 @@ public function test_files(): void
9999

100100
public function test_body_field_in_body(): void
101101
{
102-
$psrRequest = $this->http->makePsrRequest(
103-
'/',
104-
Method::POST,
105-
body: [
106-
'body' => 'text',
107-
],
102+
$request = new PsrRequestToGenericRequestMapper($this->encrypter)->map(
103+
from: $this->http->makePsrRequest(
104+
uri: '/',
105+
body: [
106+
'body' => 'text',
107+
],
108+
),
109+
to: GenericRequest::class,
108110
);
109111

110-
$mapper = new PsrRequestToGenericRequestMapper();
111-
112-
$request = $mapper->map($psrRequest, GenericRequest::class);
113-
114-
$this->assertSame(
115-
[
116-
'body' => 'text',
117-
],
118-
$request->body,
119-
);
112+
$this->assertSame(['body' => 'text'], $request->body);
120113
}
121114
}

0 commit comments

Comments
 (0)