File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Github \Api ;
4
4
5
+ use Github \Api \Enterprise \ManagementConsole ;
5
6
use Github \Api \Enterprise \Stats ;
6
7
use Github \Api \Enterprise \License ;
7
8
@@ -29,4 +30,12 @@ public function license()
29
30
{
30
31
return new License ($ this ->client );
31
32
}
33
+
34
+ /**
35
+ * @return ManagementConsole
36
+ */
37
+ public function console ()
38
+ {
39
+ return new ManagementConsole ($ this ->client );
40
+ }
32
41
}
Original file line number Diff line number Diff line change @@ -30,9 +30,18 @@ public function shouldGetEnterpriseLicenseApiObject()
30
30
$ this ->assertInstanceOf ('Github\Api\Enterprise\License ' , $ api ->license ());
31
31
}
32
32
33
+ /**
34
+ * @test
35
+ */
36
+ public function shouldGetEnterpriseManagementConsoleApiObject ()
37
+ {
38
+ $ api = $ this ->getApiMock ();
39
+
40
+ $ this ->assertInstanceOf ('Github\Api\Enterprise\ManagementConsole ' , $ api ->console ());
41
+ }
42
+
33
43
protected function getApiClass ()
34
44
{
35
45
return 'Github\Api\Enterprise ' ;
36
46
}
37
47
}
38
-
You can’t perform that action at this time.
0 commit comments