Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E_NOTICES on activity view #25169

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Dec 13, 2022

Overview

I have some unit tests I'm working on and these are coming up.

Before

  1. Send an email from civi.
  2. View the email activity.
Warning: Undefined array key "mailingId" in include() (line 21 of ...ActivityView.tpl.php).
Warning: Undefined array key "campaign" in include() (line 32 of ...ActivityView.tpl.php).
Warning: Undefined array key "engagement_level" in include() (line 39 of ...ActivityView.tpl.php).

After

Technical Details

Comments

@eileenmcnaughton
Copy link
Contributor

CRM_Activity_Form_ActivityViewTest::testActivityViewPreProcess
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
'target_contact_value' => 'Anderson, Julia'
'source_contact' => 'Anderson, Anthony'
'case_subject' => null

  • 'id' => 1
  • 'id' => '1'
    'subject' => 'Discussion on warm beer'
    'activity_subject' => 'Discussion on warm beer'
    'activity_date_time' => '2022-12-14 00:00:00'
    @@ @@
    'modified_date' => '2022-12-14 00:00:21'
    'activity_modified_date' => '2022-12-14 00:00:21'
    'attachment' => null
  • 'mailingId' => null
  • 'campaign' => null
  • 'engagement_level' => null
    )

@demeritcowboy
Copy link
Contributor Author

Maybe appropriate that my PR would fail on a warm beer test...

@yashodha
Copy link
Contributor

@demeritcowboy merging this now as tests pass as well. Thanks!

@yashodha yashodha merged commit a8de2f4 into civicrm:master Dec 14, 2022
@eileenmcnaughton
Copy link
Contributor

lol -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants