예제 #1
0
 public function testGetPlansList()
 {
     $result = $this->client->metaData()->getPlansList();
     $this->assertArrayHasKey('VPSPLANID', array_shift($result));
 }
예제 #2
0
 /**
  * @expectedException              \Vultr\Exception\ApiException
  * @expectedExceptionMessageRegExp #Plan ID \d+ is not available in region \d+\.#
  */
 public function testCreateUnavailable()
 {
     $this->client->server()->create(['DCID' => 5, 'VPSPLANID' => 1, 'OSID' => 148]);
 }
예제 #3
0
 public function testDestroy()
 {
     $result = $this->client->snapshot()->destroy('544e52f31c706');
     $this->assertInternalType('int', $result);
 }
예제 #4
0
 public function testDelete()
 {
     $result = $this->client->user()->delete('564a1a7794d83');
     $this->assertInternalType('int', $result);
 }
예제 #5
0
 public function testDestroy()
 {
     $result = $this->client->reservedIp()->destroy(1);
     $this->assertInternalType('int', $result);
 }
 public function testDestroy()
 {
     $result = $this->client->startupScript()->destroy(3);
     $this->assertInternalType('int', $result);
 }
예제 #7
0
 public function testGetAvailability()
 {
     $result = $this->client->region()->getAvailability(1);
     $this->assertContainsOnly('int', $result);
 }
예제 #8
0
 public function testDestroy()
 {
     $result = $this->client->sshKey()->destroy('541b4960f23bd');
     $this->assertInternalType('int', $result);
 }
예제 #9
0
 public function testGetPlansList()
 {
     $result = $this->client->dns()->deleteRecord('example.com', 5);
     $this->assertInternalType('int', $result);
 }