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);
 }
예제 #2
0
파일: Client.php 프로젝트: mgrt/mgrt-php
 public function enableApiKey(ApiKey $apiKey)
 {
     $command = $this->getCommand('EnableApiKey', array('apiKeyId' => $apiKey->getId()));
     return $this->execute($command);
 }