@@ -33,10 +33,10 @@ public function shouldCheckIfMemberIsInOrganizationTeam()
33
33
$ api = $ this ->getApiMock ();
34
34
$ api ->expects ($ this ->once ())
35
35
->method ('get ' )
36
- ->with ('/teams/KnpWorld/memberships/l3l0 ' )
36
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld/memberships/l3l0 ' )
37
37
->will ($ this ->returnValue ($ expectedValue ));
38
38
39
- $ this ->assertEquals ($ expectedValue , $ api ->check ('KnpWorld ' , 'l3l0 ' ));
39
+ $ this ->assertEquals ($ expectedValue , $ api ->check ('KnpWorld ' , 'l3l0 ' , ' KnpLabs ' ));
40
40
}
41
41
42
42
/**
@@ -49,10 +49,10 @@ public function shouldRemoveOrganizationTeam()
49
49
$ api = $ this ->getApiMock ();
50
50
$ api ->expects ($ this ->once ())
51
51
->method ('delete ' )
52
- ->with ('/teams/KnpWorld ' )
52
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld ' )
53
53
->will ($ this ->returnValue ($ expectedValue ));
54
54
55
- $ this ->assertEquals ($ expectedValue , $ api ->remove ('KnpWorld ' ));
55
+ $ this ->assertEquals ($ expectedValue , $ api ->remove ('KnpWorld ' , ' KnpLabs ' ));
56
56
}
57
57
58
58
/**
@@ -65,10 +65,10 @@ public function shouldShowOrganizationTeam()
65
65
$ api = $ this ->getApiMock ();
66
66
$ api ->expects ($ this ->once ())
67
67
->method ('get ' )
68
- ->with ('/teams/KnpWorld ' )
68
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld ' )
69
69
->will ($ this ->returnValue ($ expectedValue ));
70
70
71
- $ this ->assertEquals ($ expectedValue , $ api ->show ('KnpWorld ' ));
71
+ $ this ->assertEquals ($ expectedValue , $ api ->show ('KnpWorld ' , ' KnpLabs ' ));
72
72
}
73
73
74
74
/**
@@ -81,10 +81,10 @@ public function shouldGetTeamMembers()
81
81
$ api = $ this ->getApiMock ();
82
82
$ api ->expects ($ this ->once ())
83
83
->method ('get ' )
84
- ->with ('/teams/KnpWorld/members ' )
84
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld/members ' )
85
85
->will ($ this ->returnValue ($ expectedValue ));
86
86
87
- $ this ->assertEquals ($ expectedValue , $ api ->members ('KnpWorld ' ));
87
+ $ this ->assertEquals ($ expectedValue , $ api ->members ('KnpWorld ' , ' KnpLabs ' ));
88
88
}
89
89
90
90
/**
@@ -97,10 +97,10 @@ public function shouldAddTeamMembers()
97
97
$ api = $ this ->getApiMock ();
98
98
$ api ->expects ($ this ->once ())
99
99
->method ('put ' )
100
- ->with ('/teams/KnpWorld/memberships/l3l0 ' )
100
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld/memberships/l3l0 ' )
101
101
->will ($ this ->returnValue ($ expectedValue ));
102
102
103
- $ this ->assertEquals ($ expectedValue , $ api ->addMember ('KnpWorld ' , 'l3l0 ' ));
103
+ $ this ->assertEquals ($ expectedValue , $ api ->addMember ('KnpWorld ' , 'l3l0 ' , ' KnpLabs ' ));
104
104
}
105
105
106
106
/**
@@ -113,10 +113,10 @@ public function shouldRemoveTeamMembers()
113
113
$ api = $ this ->getApiMock ();
114
114
$ api ->expects ($ this ->once ())
115
115
->method ('delete ' )
116
- ->with ('/teams/KnpWorld/memberships/l3l0 ' )
116
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld/memberships/l3l0 ' )
117
117
->will ($ this ->returnValue ($ expectedValue ));
118
118
119
- $ this ->assertEquals ($ expectedValue , $ api ->removeMember ('KnpWorld ' , 'l3l0 ' ));
119
+ $ this ->assertEquals ($ expectedValue , $ api ->removeMember ('KnpWorld ' , 'l3l0 ' , ' KnpLabs ' ));
120
120
}
121
121
122
122
/**
@@ -261,7 +261,7 @@ public function shouldNotUpdateTeamWithoutName()
261
261
$ api ->expects ($ this ->never ())
262
262
->method ('patch ' );
263
263
264
- $ api ->update ('KnpWorld ' , $ data );
264
+ $ api ->update ('KnpWorld ' , $ data, ' KnpLabs ' );
265
265
}
266
266
267
267
/**
@@ -275,10 +275,10 @@ public function shouldUpdateOrganizationTeam()
275
275
$ api = $ this ->getApiMock ();
276
276
$ api ->expects ($ this ->once ())
277
277
->method ('patch ' )
278
- ->with ('/teams/KnpWorld ' , $ data )
278
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld ' , $ data )
279
279
->will ($ this ->returnValue ($ expectedValue ));
280
280
281
- $ this ->assertEquals ($ expectedValue , $ api ->update ('KnpWorld ' , $ data ));
281
+ $ this ->assertEquals ($ expectedValue , $ api ->update ('KnpWorld ' , $ data, ' KnpLabs ' ));
282
282
}
283
283
284
284
/**
@@ -292,10 +292,10 @@ public function shouldUpdateWithPullPermissionWhenPermissionParamNotRecognized()
292
292
$ api = $ this ->getApiMock ();
293
293
$ api ->expects ($ this ->once ())
294
294
->method ('patch ' )
295
- ->with ('/teams/KnpWorld ' , ['name ' => 'KnpWorld ' , 'permission ' => 'pull ' ])
295
+ ->with ('/orgs/KnpLabs/ teams/KnpWorld ' , ['name ' => 'KnpWorld ' , 'permission ' => 'pull ' ])
296
296
->will ($ this ->returnValue ($ expectedValue ));
297
297
298
- $ this ->assertEquals ($ expectedValue , $ api ->update ('KnpWorld ' , $ data ));
298
+ $ this ->assertEquals ($ expectedValue , $ api ->update ('KnpWorld ' , $ data, ' KnpLabs ' ));
299
299
}
300
300
301
301
/**
0 commit comments