From b80e4eb3b659edb28ed0f98cccefba22243d7acd Mon Sep 17 00:00:00 2001 From: Jeff Ong Date: Wed, 11 Sep 2024 13:03:50 -0400 Subject: [PATCH] Update remaining tests with inner markup. --- tests/CbtThemeLocale/escapeTextContentOfBlocks.php | 6 ++++-- tests/test-theme-templates.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/CbtThemeLocale/escapeTextContentOfBlocks.php b/tests/CbtThemeLocale/escapeTextContentOfBlocks.php index 2fee4adf..c9a36ad6 100644 --- a/tests/CbtThemeLocale/escapeTextContentOfBlocks.php +++ b/tests/CbtThemeLocale/escapeTextContentOfBlocks.php @@ -108,8 +108,10 @@ public function data_test_escape_text_content_of_blocks() { ', 'expected_markup' => ' -
El polvo elemental que nos ignora
y que fue el rojo Adán y que es ahora
todos los hombres, y que no veremos.\', \'test-locale-theme\');?>
- ', +
\', \'
\', \'
\', \'
\', \'
\' ); ?>
+ ', ), 'button' => array( diff --git a/tests/test-theme-templates.php b/tests/test-theme-templates.php index e2842800..8fdfd3e2 100644 --- a/tests/test-theme-templates.php +++ b/tests/test-theme-templates.php @@ -164,7 +164,7 @@ public function test_properly_encode_html_markup() { '; $escaped_template = CBT_Theme_Templates::escape_text_in_template( $template ); - $this->assertStringContainsString( "Bold text has feelings <> TOO', '');?>", $escaped_template->content ); + $this->assertStringContainsString( "', '' ); ?>", $escaped_template->content ); } public function test_empty_alt_text_is_not_localized() { @@ -262,7 +262,7 @@ public function test_localize_verse() {
Here is some verse to localize
'; $new_template = CBT_Theme_Templates::escape_text_in_template( $template ); - $this->assertStringContainsString( "verse to localize', '');?>", $new_template->content ); + $this->assertStringContainsString( "', '' ); ?>", $new_template->content ); } public function test_localize_table() {