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);
 }
Esempio n. 2
0
 public function enableApiKey(ApiKey $apiKey)
 {
     $command = $this->getCommand('EnableApiKey', array('apiKeyId' => $apiKey->getId()));
     return $this->execute($command);
 }