@@ -25,6 +25,25 @@ public function testAll()
2525 $ this ->assertEquals ($ expectedResult , $ actual );
2626 }
2727
28+ public function testGet ()
29+ {
30+ $ endpoint = 'repositories/gentle/eof/refs/tags/atag ' ;
31+ $ expectedResult = json_encode ('dummy ' );
32+
33+ $ client = $ this ->getHttpClientMock ();
34+ $ client ->expects ($ this ->once ())
35+ ->method ('get ' )
36+ ->with ($ endpoint )
37+ ->will ($ this ->returnValue ($ expectedResult ));
38+
39+ $ repository = $ this ->getClassMock ('Bitbucket\API\Repositories\Refs\Tags ' , $ client );
40+
41+ /** @var $repository \Bitbucket\API\Repositories\Refs\Tags */
42+ $ actual = $ repository ->get ('gentle ' , 'eof ' , 'atag ' );
43+
44+ $ this ->assertEquals ($ expectedResult , $ actual );
45+ }
46+
2847 public function testCreate ()
2948 {
3049 $ endpoint = 'repositories/gentle/eof/refs/tags ' ;
@@ -39,7 +58,7 @@ public function testCreate()
3958 $ repository = $ this ->getClassMock ('Bitbucket\API\Repositories\Refs\Tags ' , $ client );
4059
4160 /** @var $repository \Bitbucket\API\Repositories\Refs\Tags */
42- $ actual = $ repository ->create ('gentle ' , 'eof ' , 'tagName ' , '2310abb944423ecf1a90be9888dafd096744b531 ' );
61+ $ actual = $ repository ->create ('gentle ' , 'eof ' , 'atag ' , '2310abb944423ecf1a90be9888dafd096744b531 ' );
4362
4463 $ this ->assertEquals ($ expectedResult , $ actual );
4564 }
0 commit comments