Example #1
0
 public function testItCreatesContact()
 {
     $expectedResponse = $this->createExpectedResponse('createContact');
     $this->httpClient->expects($this->once())->method('send')->willReturn($expectedResponse);
     $data = array('3' => '*****@*****.**', 'source' => '123');
     $response = $this->client->createContact($data);
     $this->assertInstanceOf('\\Snowcap\\Emarsys\\Response', $response);
 }