From e789292ae0f25e41e0814cdf605b4cdc2159fb62 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 11 Jan 2023 12:09:28 +0400 Subject: [PATCH 1/2] Update the 'test_remove_invalid_element_pseudo_selectors' test case --- phpunit/class-wp-theme-json-test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpunit/class-wp-theme-json-test.php b/phpunit/class-wp-theme-json-test.php index ca27606ea2e442..8f23e033ca7730 100644 --- a/phpunit/class-wp-theme-json-test.php +++ b/phpunit/class-wp-theme-json-test.php @@ -894,6 +894,11 @@ public function test_remove_invalid_element_pseudo_selectors() { 'background' => 'blue', ), ), + ':seen' => array( + 'color' => array( + 'background' => 'ivory', + ), + ), ), ), ), From 7684a5b62defdc4d5f067b81f84cc00096133e86 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 11 Jan 2023 12:27:00 +0400 Subject: [PATCH 2/2] Fix lint error --- phpunit/class-wp-theme-json-test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit/class-wp-theme-json-test.php b/phpunit/class-wp-theme-json-test.php index 8f23e033ca7730..0d21f46ee9c291 100644 --- a/phpunit/class-wp-theme-json-test.php +++ b/phpunit/class-wp-theme-json-test.php @@ -894,7 +894,7 @@ public function test_remove_invalid_element_pseudo_selectors() { 'background' => 'blue', ), ), - ':seen' => array( + ':seen' => array( 'color' => array( 'background' => 'ivory', ),