Skip to content

Commit 3c7f6f6

Browse files
o.trelinm1guelpf
authored andcommitted
Support of Discussion API for issues and merge requests
(fix tests)
1 parent 25fea08 commit 3c7f6f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Gitlab/Tests/Api/MergeRequestsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public function shouldResolveDiscussion()
311311

312312
$api = $this->getApiMock();
313313
$api->expects($this->once())
314-
->method('post')
314+
->method('put')
315315
->with('projects/1/merge_requests/2/discussions/abc', array('resolved' => true))
316316
->will($this->returnValue($expectedArray))
317317
;
@@ -328,7 +328,7 @@ public function shouldUnresolveDiscussion()
328328

329329
$api = $this->getApiMock();
330330
$api->expects($this->once())
331-
->method('post')
331+
->method('put')
332332
->with('projects/1/merge_requests/2/discussions/abc', array('resolved' => false))
333333
->will($this->returnValue($expectedArray))
334334
;

0 commit comments

Comments
 (0)