Skip to content

Commit

Permalink
fix phpSpec test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetan committed Feb 8, 2017
1 parent 0405401 commit c8ccea3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/Subscriber/ListRepositorySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ public function it_can_not_find_a_list_by_its_id(MailChimp $mailchimp)
{
$mailchimp->success()->willReturn(false);
$mailchimp->getLastResponse()->willReturn([
"type" => "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/",
"title" => "Invalid Resource",
"status" => 404,
"detail" => "The requested resource could not be found.",
"instance" => ""
"headers" => [],
"body" => '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":404,"detail":"The requested resource could not be found.","instance":""}'
]);

$this->shouldThrow(new MailchimpException(404, 'The requested resource could not be found.', "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/", "Invalid Resource", null, ''))
Expand Down

0 comments on commit c8ccea3

Please sign in to comment.