protected function MailchimpListsBasicTestCase::setListsCron in Mailchimp 7.2
Helper function to set the Cron setting on the test lists.
@boolean $flag Whatever value you want to set the Cron settigs to.
1 call to MailchimpListsBasicTestCase::setListsCron()
- MailchimpListsBasicTestCase::testMailchimpListSubscriptionWorkflow in modules/
mailchimp_lists/ tests/ mailchimp_lists.test - Tests subscription workflows.
File
- modules/
mailchimp_lists/ tests/ mailchimp_lists.test, line 391 - Test class and methods for the Mailchimp Lists module.
Class
- MailchimpListsBasicTestCase
- @file Test class and methods for the Mailchimp Lists module.
Code
protected function setListsCron($flag) {
$lists = mailchimp_lists_load_multiple();
foreach ($lists as $list) {
$list->settings['cron'] = $flag;
mailchimp_lists_save($list);
}
}