@@ -630,6 +630,43 @@ public function shouldGetIssueParticipants(): void
630630 $ this ->assertEquals ($ expectedArray , $ api ->showParticipants (1 , 2 ));
631631 }
632632
633+ /**
634+ * @test
635+ */
636+ public function shouldGetIssueResourceLabelEvents (): void
637+ {
638+ $ expectedArray = [
639+ ['id ' => 1 , 'resource_type ' => 'Issue ' , 'action ' => 'add ' ],
640+ ['id ' => 2 , 'resource_type ' => 'Issue ' , 'action ' => 'add ' ],
641+ ];
642+
643+ $ api = $ this ->getApiMock ();
644+ $ api ->expects ($ this ->once ())
645+ ->method ('get ' )
646+ ->with ('projects/1/issues/2/resource_label_events ' )
647+ ->will ($ this ->returnValue ($ expectedArray ))
648+ ;
649+
650+ $ this ->assertEquals ($ expectedArray , $ api ->showResourceLabelEvents (1 , 2 ));
651+ }
652+
653+ /**
654+ * @test
655+ */
656+ public function shouldGetIssueResourceLabelEvent (): void
657+ {
658+ $ expectedArray = ['id ' => 1 , 'resource_type ' => 'Issue ' , 'action ' => 'add ' ];
659+
660+ $ api = $ this ->getApiMock ();
661+ $ api ->expects ($ this ->once ())
662+ ->method ('get ' )
663+ ->with ('projects/1/issues/2/resource_label_events/3 ' )
664+ ->will ($ this ->returnValue ($ expectedArray ))
665+ ;
666+
667+ $ this ->assertEquals ($ expectedArray , $ api ->showResourceLabelEvent (1 , 2 , 3 ));
668+ }
669+
633670 protected function getApiClass ()
634671 {
635672 return Issues::class;
0 commit comments