From: eileenmcnaugton Date: Mon, 14 Mar 2016 11:42:23 +0000 (+1300) Subject: Add test for reminder (not) repeating on same day X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d48c97b3da95f15483f3e041a59e10cae5d0aac;p=civicrm-core.git Add test for reminder (not) repeating on same day --- 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() {