public function testDeleteContactReturnsCorrectData() { $contact = new Contact(); $contact->setId(1); $this->setMockResponse($this->client, array('contacts/deleteContact')); $result = $this->client->deleteContact($contact); $this->assertInternalType('boolean', $result); $this->assertEquals(true, $result); }
public function resubscribeContact(Contact $contact) { $command = $this->getCommand('ResubscribeContact', array('contactId' => $contact->getId())); return $this->execute($command); }