[NFC] Fix undefined array key when running CRM unit test suite in php8
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 30 Aug 2021 07:30:36 +0000 (17:30 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 30 Aug 2021 07:30:36 +0000 (17:30 +1000)
tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php

index 838f7541d199f890cdd88ecc3c0f3448e1188c3e..5ff49af24f7217bcc543eb3ffa8a2ecc465cd65d 100644 (file)
@@ -961,7 +961,15 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
 
     // In this example, we test activity tokens
     $activityTokens = '{activity.subject};;{activity.details};;{activity.activity_date_time}';
-    $activity = $this->fixtures['phonecall'];
+    $activity = [
+      'status_id' => 1,
+      'activity_type_id' => 2,
+      'activity_date_time' => '20120615100000',
+      'is_current_revision' => 1,
+      'is_deleted' => 0,
+      'subject' => 'Phone call',
+      'details' => 'A phone call about a bear',
+    ];
     $activityTokensExpected = "Phone call;;A phone call about a bear;;June 15th, 2012 10:00 AM";
     $cases[4] = [
       // Schedule definition.