From 9f43b736350692611d6d0682df5362c328969066 Mon Sep 17 00:00:00 2001
From: Jeff Ong
Date: Tue, 10 Sep 2024 17:51:56 -0400
Subject: [PATCH] Update content with html test.
---
tests/CbtThemeLocale/escapeTextContent.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/CbtThemeLocale/escapeTextContent.php b/tests/CbtThemeLocale/escapeTextContent.php
index 32609243..1cc93a06 100644
--- a/tests/CbtThemeLocale/escapeTextContent.php
+++ b/tests/CbtThemeLocale/escapeTextContent.php
@@ -37,9 +37,10 @@ public function test_escape_text_content_with_double_quote() {
}
public function test_escape_text_content_with_html() {
- $string = 'This is a test text with HTML.
';
- $escaped_string = $this->call_private_method( 'escape_text_content', array( $string ) );
- $this->assertEquals( "This is a test text with HTML.
', 'test-locale-theme');?>", $escaped_string );
+ $string = 'This is a test text with HTML.
';
+ $escaped_string = $this->call_private_method( 'escape_text_content', array( $string ) );
+ $expected_output = "', ''); ?>";
+ $this->assertEquals( $expected_output, $escaped_string );
}
public function test_escape_text_content_with_already_escaped_string() {