File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed
Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments