From: colemanw Date: Wed, 6 Sep 2023 14:38:29 +0000 (-0400) Subject: RepeatingEntity - Update tests with correct name for ActionSchedule X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=27d105106c901b268736a376a2ff30f99d59ebe8;p=civicrm-core.git RepeatingEntity - Update tests with correct name for ActionSchedule Follow-up from a47a0396 this updates the tests to match the (ugh) form code (that form code really belongs in a BAO which can be properly tested!) --- diff --git a/tests/phpunit/CRM/Activity/Form/ActivityTest.php b/tests/phpunit/CRM/Activity/Form/ActivityTest.php index 5486c7c751..d527af19db 100644 --- a/tests/phpunit/CRM/Activity/Form/ActivityTest.php +++ b/tests/phpunit/CRM/Activity/Form/ActivityTest.php @@ -99,7 +99,7 @@ class CRM_Activity_Form_ActivityTest extends CiviUnitTestCase { // Create the repeating activity's schedule. $actionScheduleParams = [ - 'title' => 'RepeatingActSchedule', + 'name' => 'repeat_civicrm_activity_' . $repeatingActivityBao->id, 'used_for' => 'civicrm_activity', 'entity_value' => $repeatingActivityBao->id, 'start_action_date' => $repeatingActivityBao->activity_date_time, diff --git a/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php b/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php index 4c0e73c066..a04576df1a 100644 --- a/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php +++ b/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php @@ -84,7 +84,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase { */ private function createActionSchedule($entity_id, $entity_table) { $params = [ - 'title' => 'My Reminder', + 'name' => 'repeat_' . $entity_table . '_' . $entity_id, "used_for" => $entity_table, "entity_value" => $entity_id, "start_action_date" => date("YmdHis"),