File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -199,13 +199,29 @@ public function shouldGetAllMembers()
199
199
$ api = $ this ->getApiMock ();
200
200
$ api ->expects ($ this ->once ())
201
201
->method ('get ' )
202
- ->with ('groups/1/members/all ' )
202
+ ->with ('groups/1/members/all/ ' )
203
203
->will ($ this ->returnValue ($ expectedArray ))
204
204
;
205
205
206
206
$ this ->assertEquals ($ expectedArray , $ api ->allMembers (1 ));
207
207
}
208
208
209
+ /**
210
+ * @test
211
+ */
212
+ public function shouldGetAllMembersUserID ()
213
+ {
214
+ $ expectedArray = array ('id ' => 2 , 'name ' => 'Bob ' );
215
+
216
+ $ api = $ this ->getApiMock ();
217
+ $ api ->expects ($ this ->once ())
218
+ ->method ('get ' )
219
+ ->with ('groups/1/members/all/2 ' )
220
+ ->will ($ this ->returnValue ($ expectedArray ));
221
+
222
+ $ this ->assertEquals ($ expectedArray , $ api ->allMembers (1 ,2 ));
223
+ }
224
+
209
225
/**
210
226
* @test
211
227
*/
Original file line number Diff line number Diff line change @@ -692,12 +692,28 @@ public function shouldGetAllMembers()
692
692
$ api = $ this ->getApiMock ();
693
693
$ api ->expects ($ this ->once ())
694
694
->method ('get ' )
695
- ->with ('projects/1/members/all ' )
695
+ ->with ('projects/1/members/all/ ' )
696
696
->will ($ this ->returnValue ($ expectedArray ));
697
697
698
698
$ this ->assertEquals ($ expectedArray , $ api ->allMembers (1 ));
699
699
}
700
700
701
+ /**
702
+ * @test
703
+ */
704
+ public function shouldGetAllMembersUserID ()
705
+ {
706
+ $ expectedArray = array ('id ' => 2 , 'name ' => 'Bob ' );
707
+
708
+ $ api = $ this ->getApiMock ();
709
+ $ api ->expects ($ this ->once ())
710
+ ->method ('get ' )
711
+ ->with ('projects/1/members/all/2 ' )
712
+ ->will ($ this ->returnValue ($ expectedArray ));
713
+
714
+ $ this ->assertEquals ($ expectedArray , $ api ->allMembers (1 ,2 ));
715
+ }
716
+
701
717
/**
702
718
* @test
703
719
*/
You can’t perform that action at this time.
0 commit comments