@@ -410,6 +410,68 @@ public function shouldRemoveNote(): void
410410 $ this ->assertEquals ($ expectedBool , $ api ->removeNote (1 , 2 , 3 ));
411411 }
412412
413+ #[Test]
414+ public function shouldShowMergeRequestNoteAwardEmojis (): void
415+ {
416+ $ expectedArray = [
417+ ['id ' => 1 , 'name ' => 'sparkles ' ],
418+ ['id ' => 2 , 'name ' => 'heart_eyes ' ],
419+ ];
420+
421+ $ api = $ this ->getApiMock ();
422+ $ api ->expects ($ this ->once ())
423+ ->method ('get ' )
424+ ->with ('projects/1/merge_requests/2/notes/3/award_emoji ' )
425+ ->willReturn ($ expectedArray )
426+ ;
427+
428+ $ this ->assertEquals ($ expectedArray , $ api ->showNoteAwardEmojis (1 , 2 , 3 ));
429+ }
430+
431+ #[Test]
432+ public function shouldShowMergeRequestNoteAwardEmoji (): void
433+ {
434+ $ expectedArray = ['id ' => 4 , 'name ' => 'sparkles ' ];
435+
436+ $ api = $ this ->getApiMock ();
437+ $ api ->expects ($ this ->once ())
438+ ->method ('get ' )
439+ ->with ('projects/1/merge_requests/2/notes/3/award_emoji/4 ' )
440+ ->willReturn ($ expectedArray )
441+ ;
442+
443+ $ this ->assertEquals ($ expectedArray , $ api ->showNoteAwardEmoji (1 , 2 , 3 , 4 ));
444+ }
445+
446+ #[Test]
447+ public function shouldAddMergeRequestNoteAwardEmoji (): void
448+ {
449+ $ expectedArray = ['id ' => 4 , 'name ' => 'sparkles ' ];
450+
451+ $ api = $ this ->getApiMock ();
452+ $ api ->expects ($ this ->once ())
453+ ->method ('post ' )
454+ ->with ('projects/1/merge_requests/2/notes/3/award_emoji ' , ['name ' => 'sparkles ' ])
455+ ->willReturn ($ expectedArray )
456+ ;
457+
458+ $ this ->assertEquals ($ expectedArray , $ api ->addNoteAwardEmoji (1 , 2 , 3 , 'sparkles ' ));
459+ }
460+
461+ #[Test]
462+ public function shouldRemoveMergeRequestNoteAwardEmoji (): void
463+ {
464+ $ expectedBool = true ;
465+
466+ $ api = $ this ->getApiMock ();
467+ $ api ->expects ($ this ->once ())
468+ ->method ('delete ' )
469+ ->with ('projects/1/merge_requests/2/notes/3/award_emoji/4 ' )
470+ ->willReturn ($ expectedBool );
471+
472+ $ this ->assertEquals ($ expectedBool , $ api ->removeNoteAwardEmoji (1 , 2 , 3 , 4 ));
473+ }
474+
413475 #[Test]
414476 public function shouldGetMergeRequestParticipants (): void
415477 {
@@ -705,6 +767,36 @@ public function shouldIssueMergeRequestAwardEmoji(): void
705767 $ this ->assertEquals ($ expectedArray , $ api ->awardEmoji (1 , 2 ));
706768 }
707769
770+ #[Test]
771+ public function shouldShowMergeRequestAwardEmoji (): void
772+ {
773+ $ expectedArray = ['id ' => 3 , 'name ' => 'sparkles ' ];
774+
775+ $ api = $ this ->getApiMock ();
776+ $ api ->expects ($ this ->once ())
777+ ->method ('get ' )
778+ ->with ('projects/1/merge_requests/2/award_emoji/3 ' )
779+ ->willReturn ($ expectedArray )
780+ ;
781+
782+ $ this ->assertEquals ($ expectedArray , $ api ->showAwardEmoji (1 , 2 , 3 ));
783+ }
784+
785+ #[Test]
786+ public function shouldAddMergeRequestAwardEmoji (): void
787+ {
788+ $ expectedArray = ['id ' => 3 , 'name ' => 'sparkles ' ];
789+
790+ $ api = $ this ->getApiMock ();
791+ $ api ->expects ($ this ->once ())
792+ ->method ('post ' )
793+ ->with ('projects/1/merge_requests/2/award_emoji ' , ['name ' => 'sparkles ' ])
794+ ->willReturn ($ expectedArray )
795+ ;
796+
797+ $ this ->assertEquals ($ expectedArray , $ api ->addAwardEmoji (1 , 2 , 'sparkles ' ));
798+ }
799+
708800 #[Test]
709801 public function shouldRevokeMergeRequestAwardEmoji (): void
710802 {
0 commit comments