From 0fb922118d90022f070095dd597ba4d35d30936a Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 22 Sep 2023 13:41:41 -0400 Subject: [PATCH] avoid random test fails --- tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php b/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php index e316d30d2b..3cce433851 100644 --- a/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php +++ b/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php @@ -339,8 +339,8 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase { $amountsPaid = [300, 100, 200]; // The first participant, as the primary participant, (only) will have the full total in the email $this->assertStringContainsString('$600', $mailSent[0]['body']); - $this->assertStringNotContainsString(600, $mailSent[1]['body']); - $this->assertStringNotContainsString(600, $mailSent[2]['body']); + $this->assertStringNotContainsString('$600', $mailSent[1]['body']); + $this->assertStringNotContainsString('$600', $mailSent[2]['body']); // The $100 paid by the second participant will be in the emails to the primary but and second participant $this->assertStringContainsString('$100', $mailSent[0]['body']); -- 2.25.1