From b0f117208abc9a6335b4dfd0f05692e8fb23a200 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 22 Jul 2024 17:52:43 -0700 Subject: [PATCH] Fix OD test case for WP 6.7-alpha --- .../tests/test-class-od-html-tag-processor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/optimization-detective/tests/test-class-od-html-tag-processor.php b/plugins/optimization-detective/tests/test-class-od-html-tag-processor.php index c1c3da372..524c79f49 100644 --- a/plugins/optimization-detective/tests/test-class-od-html-tag-processor.php +++ b/plugins/optimization-detective/tests/test-class-od-html-tag-processor.php @@ -107,18 +107,18 @@ public function data_provider_sample_documents(): array { 1 -

+ 2 ', - 'open_tags' => array( 'HTML', 'HEAD', 'BODY', 'SPAN', 'BR', 'SPAN' ), + 'open_tags' => array( 'HTML', 'HEAD', 'BODY', 'SPAN', 'META', 'SPAN' ), 'xpaths' => array( '/*[1][self::HTML]', '/*[1][self::HTML]/*[1][self::HEAD]', '/*[1][self::HTML]/*[2][self::BODY]', '/*[1][self::HTML]/*[2][self::BODY]/*[1][self::SPAN]', - '/*[1][self::HTML]/*[2][self::BODY]/*[2][self::BR]', + '/*[1][self::HTML]/*[2][self::BODY]/*[2][self::META]', '/*[1][self::HTML]/*[2][self::BODY]/*[3][self::SPAN]', ), ),