Skip to content

Commit

Permalink
Merge pull request #21314 from seamuslee001/fix_php8_testing
Browse files Browse the repository at this point in the history
[NFC] Fix undefined array key when running CRM unit test suite in php8
  • Loading branch information
eileenmcnaughton authored Aug 30, 2021
2 parents 787efea + 4ac54eb commit af4b67d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,15 @@ public function mailerExamples(): array {

// 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.
Expand Down

0 comments on commit af4b67d

Please sign in to comment.