Skip to content

Commit c8ccea3

Browse files
author
gaetan
committed
fix phpSpec test
1 parent 0405401 commit c8ccea3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/Subscriber/ListRepositorySpec.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ public function it_can_not_find_a_list_by_its_id(MailChimp $mailchimp)
3737
{
3838
$mailchimp->success()->willReturn(false);
3939
$mailchimp->getLastResponse()->willReturn([
40-
"type" => "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/",
41-
"title" => "Invalid Resource",
42-
"status" => 404,
43-
"detail" => "The requested resource could not be found.",
44-
"instance" => ""
40+
"headers" => [],
41+
"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":""}'
4542
]);
4643

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

0 commit comments

Comments
 (0)