Skip to content

Commit

Permalink
Merge pull request #15531 from eileenmcnaughton/silly_template
Browse files Browse the repository at this point in the history
Remove extraneous full stop, line
  • Loading branch information
seamuslee001 authored Oct 18, 2019
2 parents bca89ce + 220bfdc commit 1b6e799
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 6 additions & 3 deletions tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public function testSubmit() {
*/
public function testPaidSubmit($thousandSeparator) {
$this->setCurrencySeparators($thousandSeparator);
$mut = new CiviMailUtils($this);
$paymentProcessorID = $this->processorCreate();
/* @var \CRM_Core_Payment_Dummy $processor */
$processor = Civi\Payment\System::singleton()->getById($paymentProcessorID);
Expand Down Expand Up @@ -136,15 +137,12 @@ public function testPaidSubmit($thousandSeparator) {
'billing_state_province_id-5' => '1061',
'billing_postal_code-5' => '7',
'billing_country_id-5' => '1228',
'scriptFee' => '',
'scriptArray' => '',
'priceSetId' => '6',
'price_7' => [
13 => 1,
],
'payment_processor_id' => $paymentProcessorID,
'bypass_payment' => '',
'MAX_FILE_SIZE' => '33554432',
'is_primary' => 1,
'is_pay_later' => 0,
'campaign_id' => NULL,
Expand Down Expand Up @@ -209,6 +207,11 @@ public function testPaidSubmit($thousandSeparator) {
'financial_trxn_id' => $financialTrxn['id'] + 1,
'amount' => '1.67',
], $entityFinancialTrxns[2], ['id', 'entity_id']);
$mut->checkMailLog([
'Event Information and Location', 'Registration Confirmation - Annual CiviCRM meet',
'This letter is a confirmation that your registration has been received and your status has been updated to <strong> Registered</strong>',
]);
$mut->clearMessages();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{else}
<p>{ts}Thank you for your participation.{/ts}
{if $participant_status}{ts 1=$participant_status}This letter is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts}
{else}{if $isOnWaitlist}{ts}This letter is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This letter is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}.</p>
{else}{if $isOnWaitlist}{ts}This letter is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This letter is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}</p>

{/if}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
{ts}Thank you for your participation.{/ts}
{if $participant_status}{ts 1=$participant_status}This letter is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
{else}{if $isOnWaitlist}{ts}This letter is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This letter is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}
{/if}.

{/if}
{/if}

{if $isOnWaitlist}
Expand Down

0 comments on commit 1b6e799

Please sign in to comment.