public function testDeleteApiKeyReturnsCorrectData() { $apiKey = new ApiKey(); $apiKey->setId(1); $this->setMockResponse($this->client, array('api-keys/deleteApiKey')); $result = $this->client->deleteApiKey($apiKey); $this->assertInternalType('boolean', $result); $this->assertEquals(true, $result); }
public function enableApiKey(ApiKey $apiKey) { $command = $this->getCommand('EnableApiKey', array('apiKeyId' => $apiKey->getId())); return $this->execute($command); }