diff --git a/phpunit/html/wp-html-tag-processor-test.php b/phpunit/html/wp-html-tag-processor-test.php index eddfc68fbe845..56b7f312971cf 100644 --- a/phpunit/html/wp-html-tag-processor-test.php +++ b/phpunit/html/wp-html-tag-processor-test.php @@ -266,6 +266,29 @@ public function test_get_attribute_names_returns_attribute_names() { ); } + /** + * @ticket 56299 + * + * @covers set_attribute + * @covers get_updated_html + * @covers get_attribute_names + */ + public function test_get_attribute_names_returns_attribute_added_by_set_attribute() { + $p = new WP_HTML_Tag_Processor( '