diff --git a/tests/CbtThemeLocale/escapeString.php b/tests/CbtThemeLocale/escapeString.php index 0b5229ff..0bdf63eb 100644 --- a/tests/CbtThemeLocale/escapeString.php +++ b/tests/CbtThemeLocale/escapeString.php @@ -16,6 +16,18 @@ public function test_escape_string() { $this->assertEquals( "", $escaped_string ); } + public function test_escape_string_with_single_quote() { + $string = "This is a test text with a single quote '"; + $escaped_string = CBT_Theme_Locale::escape_string( $string ); + $this->assertEquals( "", $escaped_string ); + } + + public function test_escape_string_with_double_quote() { + $string = 'This is a test text with a double quote "'; + $escaped_string = CBT_Theme_Locale::escape_string( $string ); + $this->assertEquals( "", $escaped_string ); + } + public function test_escape_string_with_html() { $string = '

This is a test text with HTML.

'; $escaped_string = CBT_Theme_Locale::escape_string( $string );