From 7d48c97b3da95f15483f3e041a59e10cae5d0aac Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Tue, 15 Mar 2016 00:42:23 +1300 Subject: [PATCH] Add test for reminder (not) repeating on same day --- tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php b/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php index 37ae8c0753..22a6cc30c3 100644 --- a/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php +++ b/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php @@ -1290,6 +1290,13 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase { 'recipients' => array(array('member@example.com')), ), )); + $this->assertCronRuns(array( + array( + // It should not re-send on the same day + 'time' => '2012-04-12 01:00:00', + 'recipients' => array(array()), + ), + )); } public function testMembershipOnMultipleReminder() { -- 2.25.1