We agreed to remove these a while back. Since https://github.com/civicrm/civicrm-core/pull/15466
is already upgrading them it's a good chance to rip our the rest:
/**
* Test the submit function on the contribution page.
+ *
+ * @throws \CRM_Core_Exception
+ * @throws \CiviCRM_API3_Exception
*/
public function testSubmitEmailReceipt() {
$form = new CRM_Contribute_Form_Contribution();
], CRM_Core_Action::ADD);
$this->callAPISuccessGetCount('Contribution', ['contact_id' => $this->_individualId], 1);
$mut->checkMailLog([
- '<p>Please print this receipt for your records.</p>',
+ 'Contribution Information',
]);
$mut->stop();
}
], CRM_Core_Action::ADD);
$this->callAPISuccessGetCount('Contribution', ['contact_id' => $this->_individualId], 1);
$mut->checkMailLog([
- '<p>Please print this receipt for your records.</p>',
+ 'Thank you for your support',
'<testloggedin@example.com>',
]);
$mut->stop();
$msg = $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, FALSE, TRUE);
$this->assertTrue(is_array($msg), "Message returned as an array in line");
$this->assertEquals('Mr. Anthony Anderson II', $msg['to']);
- $this->assertContains('<p>Please print this confirmation for your records.</p>', $msg['html']);
$this->assertContains('Membership Type: General', $msg['body']);
}
$msg = $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, FALSE, TRUE);
$this->assertTrue(is_array($msg), "Message returned as an array in line" . __LINE__);
$this->assertEquals('Mr. Anthony Anderson II', $msg['to']);
- $this->assertContains('<p>Please print this confirmation for your records.</p>', $msg['html']);
$this->assertContains('Membership Type: General', $msg['body']);
}
$msg = $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, FALSE, TRUE);
$this->assertTrue(is_array($msg), "Message returned as an array in line" . __LINE__);
$this->assertEquals('Mr. Anthony Anderson II', $msg['to']);
- $this->assertContains('<p>Please print this confirmation for your records.</p>', $msg['html']);
$this->assertContains('Thank you for your participation', $msg['body']);
}
'is_email_receipt' => 1,
]);
$mut->checkMailLog([
- 'Please print this receipt for your records.',
+ 'Contribution Information',
]);
$mut->stop();
}
$mut->checkMailLog([
'$ 100.00',
'Contribution Information',
- 'Please print this confirmation for your records',
], [
'Event',
]);
$mut->checkMailLog([
'From: CiviCRM LLC <api@civicrm.org>',
'Contribution Information',
- 'Please print this confirmation for your records',
], [
'Event',
]);
$mut->checkMailLog([
'From: ' . $domain['from_name'] . ' <' . $domain['from_email'] . '>',
'Contribution Information',
- 'Please print this confirmation for your records',
], [
'Event',
]);
$mut->checkMailLog([
'From: ' . $domain['from_name'] . ' <' . $domain['from_email'] . '>',
'Contribution Information',
- 'Please print this confirmation for your records',
], [
'Event',
]
$mut->checkMailLog([
'From: CiviCRM LLC <contributionpage@civicrm.org>',
'Contribution Information',
- 'Please print this confirmation for your records',
], [
'Event',
]);
$mut->checkMailLog([
'From: ' . $domain['name'] . ' <' . $domain['domain_email'] . '>',
'Contribution Information',
- 'Please print this confirmation for your records',
], [
'Event',
]);
<p>{ts}Thank you for your support.{/ts}</p>
{/if}
- <p>{ts}Please print this receipt for your records.{/ts}</p>
-
</td>
</tr>
<tr>
{$formValues.receipt_text}
{else}{ts}Thank you for your support.{/ts}{/if}
-{ts}Please print this receipt for your records.{/ts}
-
===========================================================
{ts}Contribution Information{/ts}
{if $is_pay_later}
<p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
- {else}
- <p>{ts}Please print this confirmation for your records.{/ts}</p>
{/if}
</td>
===========================================================
{$pay_later_receipt}
===========================================================
-{else}
-
-{ts}Please print this receipt for your records.{/ts}
{/if}
{if $amount}
{/if}
{elseif $is_pay_later}
<p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
- {else}
- <p>{ts}Please print this confirmation for your records.{/ts}</p>
{/if}
</td>
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
-{else}
-
-{ts}Please print this confirmation for your records.{/ts}
{/if}
{/if}
{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
<p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
- {else}
- <p>{ts}Please print this confirmation for your records.{/ts}</p>
{/if}
</td>
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
-{else}
-
-{ts}Please print this confirmation for your records.{/ts}
{/if}
<p>{$pay_later_receipt}</p>
{/if}
- <p>Your order number is #{$transaction_id}. Please print this confirmation for your records.{if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
+ <p>Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:</p>
{$pay_later_receipt}
{/if}
- Your order number is #{$transaction_id}. Please print this confirmation for your records.{if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
+ Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
{if $billing_name}
{else}
<p>{ts}Thank you for your support.{/ts}</p>
{/if}
- {if ! $cancelled}
- <p>{ts}Please print this receipt for your records.{/ts}</p>
- {/if}
</td>
</tr>
<tr>
{$formValues.receipt_text_renewal}
{else}{ts}Thank you for your support.{/ts}{/if}
-{if ! $cancelled}{ts}Please print this receipt for your records.{/ts}
-
-
-{/if}
{if !$lineItem}
===========================================================
{ts}Membership Information{/ts}
{if $is_pay_later}
<p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
- {else}
- <p>{ts}Please print this confirmation for your records.{/ts}</p>
{/if}
</td>
===========================================================
{$pay_later_receipt}
===========================================================
-{else}
-
-{ts}Please print this receipt for your records.{/ts}
{/if}
{if $membership_assign && !$useForMember}