Skip to content

Commit 3584ecd

Browse files
committed
make tests green again
1 parent 6dc50b3 commit 3584ecd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Bitbucket/Tests/API/Repositories/PullRequestsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)