Skip to content

Commit 860e26f

Browse files
tadckam1guelpf
authored andcommitted
Add test
1 parent 78abaf8 commit 860e26f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/Gitlab/Tests/Api/MergeRequestsTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,21 @@ public function shouldGetMergeRequestNotes()
191191
$this->assertEquals($expectedArray, $api->showNotes(1, 2));
192192
}
193193

194+
/**
195+
* @test
196+
*/
197+
public function shouldRemoveMergeRequestNote()
198+
{
199+
$expectedBool = true;
200+
201+
$api = $this->getApiMock();
202+
$api->expects($this->once())
203+
->method('delete')
204+
->with('projects/1/merge_requests/2/notes/1')
205+
->will($this->returnValue($expectedBool));
206+
$this->assertEquals($expectedBool, $api->removeNote(1, 2, 1));
207+
}
208+
194209
/**
195210
* @test
196211
*/

0 commit comments

Comments
 (0)