From 486d6c5c66570ef507da3926a993ed861e8ae890 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 3 Aug 2018 11:33:44 +1200 Subject: [PATCH] Test fix, update activity report adds a this.month fiter by default so make dates movable. I also put time at the end of the day to avoid bounciness on status being overdue --- tests/phpunit/api/v3/ReportTemplateTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/ReportTemplateTest.php b/tests/phpunit/api/v3/ReportTemplateTest.php index 30b999f80f..95c9e550d0 100644 --- a/tests/phpunit/api/v3/ReportTemplateTest.php +++ b/tests/phpunit/api/v3/ReportTemplateTest.php @@ -849,7 +849,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { 'civicrm_activity_source_record_id' => NULL, 'civicrm_activity_activity_type_id' => 'Meeting', 'civicrm_activity_activity_subject' => 'Very secret meeting', - 'civicrm_activity_activity_date_time' => '2018-07-16 03:42:32', + 'civicrm_activity_activity_date_time' => date('Y-m-d 23:59:58', strtotime('now')), 'civicrm_activity_status_id' => 'Scheduled', 'civicrm_activity_duration' => '120', 'civicrm_activity_location' => 'Pennsylvania', @@ -872,7 +872,6 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { 'civicrm_contact_contact_source_link' => '/index.php?q=civicrm/contact/view&reset=1&cid=' . $this->contactIDs[2], 'civicrm_contact_contact_source_hover' => 'View Contact Summary for this Contact', 'civicrm_activity_activity_type_id_hover' => 'View Activity Record', - 'class' => 'status-overdue', ]; $row = $rows[0]; // This link is not relative - skip for now @@ -895,7 +894,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { $this->callAPISuccess('Activity', 'create', [ 'subject' => 'Very secret meeting', - 'activity_date_time' => '2018-07-16 03:42:32', + 'activity_date_time' => date('Y-m-d 23:59:58', strtotime('now')), 'duration' => 120, 'location' => 'Pennsylvania', 'details' => 'a test activity', -- 2.25.1