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

Fix token consistency test with new lines and <br>s #27314

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/phpunit/CRM/Utils/TokenConsistencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,13 @@ public function testContributionPageTokens(): void {
contribution.contribution_page_id.pay_later_text :pay later text
contribution.contribution_page_id.pay_later_receipt :<p>first line</p><p>second line</p>
contribution.contribution_page_id.is_share :1
contribution.contribution_page_id.receipt_text :Text in
contribution.contribution_page_id.receipt_text :Text in<br />
non html', $tokenProcessor->getRow(0)->render('html'));
$this->assertEquals('contribution.contribution_page_id.frontend_title :public title
contribution.contribution_page_id.pay_later_text :pay later text
contribution.contribution_page_id.pay_later_receipt :first linesecond line
contribution.contribution_page_id.pay_later_receipt :first line

second line
contribution.contribution_page_id.is_share :1
contribution.contribution_page_id.receipt_text :Text in
non html', $tokenProcessor->getRow(0)->render('text'));
Expand Down