RepeatingEntity - Update tests with correct name for ActionSchedule
authorcolemanw <coleman@civicrm.org>
Wed, 6 Sep 2023 14:38:29 +0000 (10:38 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 6 Sep 2023 14:38:29 +0000 (10:38 -0400)
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!)

tests/phpunit/CRM/Activity/Form/ActivityTest.php
tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php

index 5486c7c751ee67293d6a4675abaaf762a6495897..d527af19dbf334571d38394518fc6a79ca0b5e35 100644 (file)
@@ -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,
index 4c0e73c06616ccde60905e14cddffd1f51178bed..a04576df1a1cd3a3e7bf97f54746b74eadb6ee30 100644 (file)
@@ -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"),