Skip to content

Commit

Permalink
Fix: (dev) the comparison value should be entitised
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed May 26, 2023
1 parent d4ff312 commit 88e70fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/EditableRecaptchaV3FieldFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function testProcessIncludeInEmails()

$this->assertTrue(strpos($email['Content'], $recipient->EmailBodyHtml) !== false, 'Email contains the expected HTML string');
$this->assertTrue(strpos($email['Content'], $title) !== false, 'Email contains the field name');
$this->assertTrue(strpos($email['Content'], $value) !== false, 'Email contains the field value');
$this->assertTrue(strpos($email['Content'], htmlspecialchars($value)) !== false, 'Email contains the field value');
}

/**
Expand Down Expand Up @@ -208,7 +208,7 @@ public function testProcessNotIncludeInEmails()

$this->assertTrue(strpos($email['Content'], $recipient->EmailBodyHtml) !== false, 'Email contains the expected HTML string');
$this->assertFalse(strpos($email['Content'], $title) !== false, 'Email contains the field name');
$this->assertFalse(strpos($email['Content'], $value) !== false, 'Email contains the field value');
$this->assertFalse(strpos($email['Content'], htmlspecialchars($value)) !== false, 'Email contains the field value');
}


Expand Down Expand Up @@ -311,7 +311,7 @@ public function testProcessWithRuleAttachedToEditableField()

$this->assertTrue(strpos($email['Content'], $recipient->EmailBodyHtml) !== false, 'Email contains the expected HTML string');
$this->assertTrue(strpos($email['Content'], $title) !== false, 'Email contains the field name');
$this->assertTrue(strpos($email['Content'], $value) !== false, 'Email contains the field value');
$this->assertTrue(strpos($email['Content'], htmlspecialchars($value)) !== false, 'Email contains the field value');
}


Expand Down

0 comments on commit 88e70fa

Please sign in to comment.