File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/Bitbucket/Tests/API/Repositories Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ public function testAcceptAndMergeAPullRequest()
267267 $ client = $ this ->getHttpClientMock ();
268268 $ client ->expects ($ this ->once ())
269269 ->method ('post ' )
270- ->with ($ endpoint , $ params );
270+ ->with ($ endpoint , json_encode ( $ params) );
271271
272272 /** @var \Bitbucket\API\Repositories\PullRequests $pull */
273273 $ pull = $ this ->getClassMock ('Bitbucket\API\Repositories\PullRequests ' , $ client );
@@ -285,7 +285,7 @@ public function testDeclineAPullRequest()
285285 $ client = $ this ->getHttpClientMock ();
286286 $ client ->expects ($ this ->once ())
287287 ->method ('post ' )
288- ->with ($ endpoint , $ params );
288+ ->with ($ endpoint , json_encode ( $ params) );
289289
290290 /** @var \Bitbucket\API\Repositories\PullRequests $pull */
291291 $ pull = $ this ->getClassMock ('Bitbucket\API\Repositories\PullRequests ' , $ client );
You can’t perform that action at this time.
0 commit comments