File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,26 @@ public function shouldGetIssueClosedByMergeRequests()
434434 $ this ->assertEquals ($ expectedArray , $ api ->closedByMergeRequests (1 , 2 ));
435435 }
436436
437+ /**
438+ * @test
439+ */
440+ public function shouldGetProjectIssuesByAssignee ()
441+ {
442+ $ expectedArray = array (
443+ array ('id ' => 1 , 'title ' => 'An issue ' ),
444+ array ('id ' => 2 , 'title ' => 'Another issue ' ),
445+ );
446+
447+ $ api = $ this ->getApiMock ();
448+ $ api ->expects ($ this ->once ())
449+ ->method ('get ' )
450+ ->with ('projects/1/issues ' , array ('assignee_id ' => 1 ))
451+ ->will ($ this ->returnValue ($ expectedArray ))
452+ ;
453+
454+ $ this ->assertEquals ($ expectedArray , $ api ->all (1 , array ('assignee_id ' => 1 )));
455+ }
456+
437457 protected function getApiClass ()
438458 {
439459 return 'Gitlab\Api\Issues ' ;
You can’t perform that action at this time.
0 commit comments