File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,13 @@ class DatabaseServer extends \PleskX\Api\Operator
88
99 protected $ _wrapperTag = 'db_server ' ;
1010
11+ /**
12+ * @return array
13+ */
14+ public function getSupportedTypes ()
15+ {
16+ $ response = $ this ->request ('get-supported-types ' );
17+ return (array )$ response ->type ;
18+ }
19+
1120}
Original file line number Diff line number Diff line change 1+ <?php
2+ // Copyright 1999-2014. Parallels IP Holdings GmbH. All Rights Reserved.
3+
4+ class DatabaseServerTest extends TestCase
5+ {
6+
7+ public function testGetSupportedTypes ()
8+ {
9+ $ types = $ this ->_client ->databaseServer ()->getSupportedTypes ();
10+ $ this ->assertGreaterThan (0 , count ($ types ));
11+ $ this ->assertContains ('mysql ' , $ types );
12+ }
13+
14+ }
Original file line number Diff line number Diff line change 55 <file >ApiClientTest.php</file >
66 <file >CertificateTest.php</file >
77 <file >CustomerTest.php</file >
8+ <file >DatabaseServerTest.php</file >
89 <file >EventLog.php</file >
910 <file >IpTest.php</file >
1011 <file >LocaleTest.php</file >
You can’t perform that action at this time.
0 commit comments