public function testGetPlansList() { $result = $this->client->metaData()->getPlansList(); $this->assertArrayHasKey('VPSPLANID', array_shift($result)); }
/** * @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]); }
public function testDestroy() { $result = $this->client->snapshot()->destroy('544e52f31c706'); $this->assertInternalType('int', $result); }
public function testDelete() { $result = $this->client->user()->delete('564a1a7794d83'); $this->assertInternalType('int', $result); }
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); }
public function testGetAvailability() { $result = $this->client->region()->getAvailability(1); $this->assertContainsOnly('int', $result); }
public function testDestroy() { $result = $this->client->sshKey()->destroy('541b4960f23bd'); $this->assertInternalType('int', $result); }
public function testGetPlansList() { $result = $this->client->dns()->deleteRecord('example.com', 5); $this->assertInternalType('int', $result); }