From 4ac54eb23ef7e2749c4dc8aa1ed19ab8a8a7cd7c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 30 Aug 2021 17:30:36 +1000 Subject: [PATCH] [NFC] Fix undefined array key when running CRM unit test suite in php8 --- tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php b/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php index 838f7541d1..5ff49af24f 100644 --- a/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php +++ b/tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php @@ -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. -- 2.25.1