-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28f4801
commit bd37e00
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -378,10 +378,15 @@ public function testTokensInEmail() { | |
// Check if email was sent to contact 1. | ||
$this->assertStringContainsString('[email protected]', $sent_email[0]['to']); | ||
|
||
// Something new in 10.3 | ||
$weirdoExtraSpaces = version_compare(\Drupal::VERSION, '10.3.2', '>=') ? ' ' : ''; | ||
// And now there is no longer a newline | ||
$weirdoNewline = version_compare(\Drupal::VERSION, '10.3.2', '<') ? "\n" : ''; | ||
|
||
// Verify tokens are rendered correctly. | ||
$this->assertEquals("Submitted Values Are - | ||
-------- Contact 1 | ||
-------- Contact 1 {$weirdoNewline} | ||
----------------------------------------------------------- | ||
*Existing Contact* | ||
|
@@ -402,9 +407,9 @@ public function testTokensInEmail() { | |
New Jersey | ||
*Email* | ||
[email protected] [1] | ||
Existing Contact - Frederick Pabst. Activity 1 ID - {$actID1}. Activity 2 ID - {$actID2}. | ||
Webform CiviCRM Contacts IDs - {$this->rootUserCid}. Webform CiviCRM Contacts Links - | ||
{$cidURL} Country - United | ||
Existing Contact - Frederick Pabst. Activity 1 ID - {$actID1}. Activity 2 ID - {$actID2}.{$weirdoExtraSpaces} | ||
Webform CiviCRM Contacts IDs - {$this->rootUserCid}. Webform CiviCRM Contacts Links -{$weirdoExtraSpaces} | ||
{$cidURL} Country - United{$weirdoExtraSpaces} | ||
States. State/Province - New Jersey. | ||
[1] mailto:[email protected] | ||
|