diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php index 2a17e33a0e6ee..50f3f31837ea7 100644 --- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php +++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php @@ -308,7 +308,11 @@ public function test_updates_bookmark_for_additions_after_both_sides() { $processor->seek( 'first' ); $processor->add_class( 'first' ); - $this->assertSame( 'one', $processor->get_attribute( 'id' ) ); + $this->assertSame( + 'one', + $processor->get_attribute( 'id' ), + 'Should have remembered attribute change from before the seek.' + ); $this->assertSame( '
First
Second
', diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php index 0a69b24247b1c..87933cafc4d24 100644 --- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php +++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php @@ -2759,7 +2759,8 @@ public function insert_after( $new_html ) { $subclass->next_tag(); $this->assertSame( 'P', - $subclass->get_tag() + $subclass->get_tag(), + 'Should have matched inserted HTML as next tag.' ); $subclass->next_tag( 'img' ); @@ -2767,7 +2768,8 @@ public function insert_after( $new_html ) { $this->assertSame( '

snow-capped

mountain
', - $subclass->get_updated_html() + $subclass->get_updated_html(), + 'Should have properly applied the update from in front of the cursor.' ); } }