File tree 2 files changed +7
-7
lines changed
lib/Github/Api/Organization
test/Github/Tests/Api/Organization 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ public function all($organization)
16
16
return $ this ->get ('orgs/ ' .urlencode ($ organization ).'/teams ' );
17
17
}
18
18
19
- public function show ($ organization , $ team )
20
- {
21
- return $ this ->get ('orgs/ ' .urlencode ($ organization ).'/teams/ ' .urlencode ($ team ));
22
- }
23
-
24
19
public function create ($ organization , array $ params )
25
20
{
26
21
if (!isset ($ params ['name ' ])) {
@@ -36,6 +31,11 @@ public function create($organization, array $params)
36
31
return $ this ->post ('orgs/ ' .urlencode ($ organization ).'/teams ' , $ params );
37
32
}
38
33
34
+ public function show ($ team )
35
+ {
36
+ return $ this ->get ('teams/ ' .urlencode ($ team ));
37
+ }
38
+
39
39
public function update ($ team , array $ params )
40
40
{
41
41
if (!isset ($ params ['name ' ])) {
Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ public function shouldShowOrganizationTeam()
69
69
$ api = $ this ->getApiMock ();
70
70
$ api ->expects ($ this ->once ())
71
71
->method ('get ' )
72
- ->with ('orgs/KnpLabs/ teams/KnpWorld ' )
72
+ ->with ('teams/KnpWorld ' )
73
73
->will ($ this ->returnValue ($ expectedValue ));
74
74
75
- $ this ->assertEquals ($ expectedValue , $ api ->show ('KnpLabs ' , ' KnpWorld ' ));
75
+ $ this ->assertEquals ($ expectedValue , $ api ->show ('KnpWorld ' ));
76
76
}
77
77
78
78
/**
You can’t perform that action at this time.
0 commit comments