X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FCore%2FBAO%2FActionScheduleTest.php;h=ce2df799bfeb260cf00a5bb43af8286d8af5e1ff;hb=a9ac9f6c76ce73f53d1a0d8396041ec84fafd137;hp=1282616078cc788c8de4e148d2edcd07a9a467b5;hpb=4aff02538890422cb84ce019611c53f379df5989;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php b/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php index 1282616078..ce2df799bf 100755 --- a/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php +++ b/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php @@ -955,12 +955,12 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase { $this->assertCronRuns(array( array( // On some random day, no email. - 'time' => '2014-03-07 01:00:00', + 'time' => date('Y-m-d H:i:s', strtotime($contact['values'][$contact['id']]['modified_date'] . ' -60 days')), 'recipients' => array(), ), array( // On the eve of 3 years after they were modified, send an email. - 'time' => date('Y-m-d H:i:s', strtotime($contact['values'][$contact['id']]['modified_date'] . ' +3 years -1 day')), + 'time' => date('Y-m-d H:i:s', strtotime($contact['values'][$contact['id']]['modified_date'] . ' +3 years -23 hours')), 'recipients' => array(array('test-bday@example.com')), ), ));