Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiagoebizmarts committed Jan 21, 2020
1 parent c46547e commit 5066ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ public function testGeneratePOSTPayload()
public function testShouldSendCampaignId()
{
$mailchimpCampaignId = 'ddf1830cf9';
$orderId = 1;
$magentoStoreId = '1';
$listId = 'c7ce5a3c4e';
$apiKey = 'asdasdqweqweqwedasd484848asd15';
Expand Down Expand Up @@ -414,6 +415,6 @@ public function testShouldSendCampaignId()
->with($mailchimpCampaignId, 'recipients')
->willReturn($campaignData);

$ordersApiMock->shouldSendCampaignId($mailchimpCampaignId);
$ordersApiMock->shouldSendCampaignId($mailchimpCampaignId, $orderId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function testGetNewPromoRuleWithError($promoRuleData)
->getMock();

$promoRulesApiMock
->expects($this->once())
->expects($this->exactly(2))
->method('getHelper')
->willReturn($mailChimpHelperMock);

Expand Down

0 comments on commit 5066ca4

Please sign in to comment.