public function testDeleteSenderReturnsCorrectData() { $sender = new Sender(); $sender->setId(1); $this->setMockResponse($this->client, array('senders/deleteSender')); $result = $this->client->deleteSender($sender); $this->assertInternalType('boolean', $result); $this->assertEquals(true, $result); }
public function deleteSender(Sender $sender) { $command = $this->getCommand('DeleteSender', array('senderId' => $sender->getId())); return $this->execute($command); }