diff --git a/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/OrdersTest.php b/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/OrdersTest.php index 76e08f74d..faf63e49a 100755 --- a/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/OrdersTest.php +++ b/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/OrdersTest.php @@ -352,6 +352,7 @@ public function testGeneratePOSTPayload() public function testShouldSendCampaignId() { $mailchimpCampaignId = 'ddf1830cf9'; + $orderId = 1; $magentoStoreId = '1'; $listId = 'c7ce5a3c4e'; $apiKey = 'asdasdqweqweqwedasd484848asd15'; @@ -414,6 +415,6 @@ public function testShouldSendCampaignId() ->with($mailchimpCampaignId, 'recipients') ->willReturn($campaignData); - $ordersApiMock->shouldSendCampaignId($mailchimpCampaignId); + $ordersApiMock->shouldSendCampaignId($mailchimpCampaignId, $orderId); } } diff --git a/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php b/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php index 7ca11a6df..965116dac 100644 --- a/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php +++ b/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php @@ -263,7 +263,7 @@ public function testGetNewPromoRuleWithError($promoRuleData) ->getMock(); $promoRulesApiMock - ->expects($this->once()) + ->expects($this->exactly(2)) ->method('getHelper') ->willReturn($mailChimpHelperMock);