Add 'Bounced' status to subscribers [MAILPOET-684]
Fix SubscriberTest->testItHasGroupFilter() making only one of four assertions due to lack of data. Fix a small issue with Import. Unexpected values for the status field were converted to 'unconfirmed' rather than 'subscribed' due to non-strict comparison in in_array(). This hindered 'bounced' status import as well.
This commit is contained in:
@@ -153,7 +153,12 @@ class ShortcodesTest extends MailPoetTest {
|
||||
$this->subscriber->save();
|
||||
$result =
|
||||
$shortcodes_object->process(array('[subscriber:count]'));
|
||||
expect($result[0])->equals(--$subscriber_count);
|
||||
expect($result[0])->equals($subscriber_count - 1);
|
||||
$this->subscriber->status = 'bounced';
|
||||
$this->subscriber->save();
|
||||
$result =
|
||||
$shortcodes_object->process(array('[subscriber:count]'));
|
||||
expect($result[0])->equals($subscriber_count - 1);
|
||||
}
|
||||
|
||||
function testItCanProcessSubscriberCustomFieldShortcodes() {
|
||||
|
Reference in New Issue
Block a user