From a9ac9f6c76ce73f53d1a0d8396041ec84fafd137 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Tue, 17 Mar 2015 11:15:01 -0400 Subject: [PATCH] CRM-16101 - reminder tests: fix flapping status --- tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')), ), )); -- 2.25.1