From 3049fef14a4659a80a7abe906e8707067caa65ca Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Thu, 7 Nov 2024 11:26:17 -0300 Subject: [PATCH] update image block test and add video block test --- .../escapeTextContentOfBlocks.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/CbtThemeLocale/escapeTextContentOfBlocks.php b/tests/CbtThemeLocale/escapeTextContentOfBlocks.php index 50e85891..40c4f631 100644 --- a/tests/CbtThemeLocale/escapeTextContentOfBlocks.php +++ b/tests/CbtThemeLocale/escapeTextContentOfBlocks.php @@ -125,12 +125,12 @@ public function data_test_escape_text_content_of_blocks() { 'image' => array( 'block_markup' => - ' -
Windows of a building in Nuremberg, Germany
+ ' +
image alt text
Image caption
', 'expected_markup' => - ' -
<?php esc_attr_e(\'Windows of a building in Nuremberg, Germany\', \'test-locale-theme\');?>
+ ' +
<?php esc_attr_e(\'image alt text\', \'test-locale-theme\');?>
', ), @@ -186,6 +186,15 @@ public function data_test_escape_text_content_of_blocks() { ', ), + 'video' => array( + 'block_markup' => ' +
Video caption test
+', + 'expected_markup' => + ' +
+', + ), ); } }