Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Aug 2, 2024
1 parent 51e4d25 commit 59ae2ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,20 @@ public function testIPNPaymentMembershipRecurSuccessNoLeakage(): void {
'Anderson',
'Email Address',
'[email protected]',
'Honor',
'This membership will be automatically renewed every',
'Dear Anthony',
'Thanks for your auto renew membership sign-up',
'In Memory of',
]);
$mails = $mut->getAllMessages();
foreach ($mails as $mail) {
$mut->checkMailForStrings([], ['Honor'], '', $mail);
}
$mut->clearMessages();
$this->_contactID = $this->individualCreate(['first_name' => 'Antonia', 'prefix_id' => 'Mrs.', 'email' => '[email protected]']);

// Note, the second contribution is not in honor of anyone and the
// receipt should not mention honor at all.
// Note, the second contribution is not in memory of anyone and the
// receipt should not mention memory at all.
$this->setupMembershipRecurringPaymentProcessorTransaction(['is_email_receipt' => TRUE], ['invoice_id' => '345']);
$IPN = new CRM_Core_Payment_AuthorizeNetIPN($this->getRecurTransaction(['x_trans_id' => 'hers']));
$IPN->main();
Expand Down

0 comments on commit 59ae2ae

Please sign in to comment.