diff --git a/tests/test-theme-templates.php b/tests/test-theme-templates.php index 8fdfd3e2..d6e1fc90 100644 --- a/tests/test-theme-templates.php +++ b/tests/test-theme-templates.php @@ -164,7 +164,11 @@ public function test_properly_encode_html_markup() { '; $escaped_template = CBT_Theme_Templates::escape_text_in_template( $template ); - $this->assertStringContainsString( "', '' ); ?>", $escaped_template->content ); + $expected_output = "', '' ); ?>"; + + $this->assertStringContainsString( $expected_output, $escaped_template->content ); } public function test_empty_alt_text_is_not_localized() { @@ -262,7 +266,12 @@ public function test_localize_verse() {
Here is some verse to localize
'; $new_template = CBT_Theme_Templates::escape_text_in_template( $template ); - $this->assertStringContainsString( "', '' ); ?>", $new_template->content ); + + $expected_output = "', '' ); ?>"; + + $this->assertStringContainsString( $expected_output, $new_template->content ); } public function test_localize_table() {