Merge pull request #294 from mailpoet/mailchimp_import_fix

Fixes MailChimp import error
This commit is contained in:
Tautvidas Sipavičius
2016-01-22 12:20:44 +02:00
3 changed files with 3 additions and 3 deletions

View File

@@ -721,7 +721,7 @@ define(
}
});
// reduce subscribers object if the total length is geater than the
// reduce subscribers object if the total length is greater than the
// maximum number of defined rows
if (subscribers.subscribersCount > (maxRowsToShow + 1)) {
subscribers.subscribers.splice(

View File

@@ -113,7 +113,7 @@ class MailChimp {
'invalid' => false,
'duplicate' => false,
'header' => $header,
'count' => count($subscribers)
'subscribersCount' => count($subscribers)
)
);
}

View File

@@ -58,7 +58,7 @@ class MailChimpCest {
expect(isset($subscribers['data']['duplicate']))->true();
expect(isset($subscribers['data']['header']))->true();
expect(count($subscribers['data']['subscribers']))->equals(1);
expect($subscribers['data']['count'])->equals(1);
expect($subscribers['data']['subscribersCount'])->equals(1);
}
function itFailsWhenListHeadersDontMatch() {