avoid random test fails
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 22 Sep 2023 17:41:41 +0000 (13:41 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 22 Sep 2023 17:41:41 +0000 (13:41 -0400)
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php

index e316d30d2be89bf7af485b5162098233a7e49c67..3cce43385181a5e9f96456b2e641a2f657a47e16 100644 (file)
@@ -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']);