Skip to content

Commit 7d9e353

Browse files
committed
Add test for </br> and next_tag()
1 parent 37feefd commit 7d9e353

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/phpunit/tests/html-api/wpHtmlTagProcessor.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,16 @@ public function test_get_attribute_names_with_prefix_returns_attribute_added_by_
381381
);
382382
}
383383

384+
/**
385+
* @ticket 63891
386+
*
387+
* @covers WP_HTML_Tag_Processor::next_tag
388+
*/
389+
public function test_next_attributes_stops_on_br_close() {
390+
$processor = new WP_HTML_Tag_Processor( '</br>' );
391+
$this->assertTrue( $processor->next_tag() );
392+
}
393+
384394
/**
385395
* @ticket 63891
386396
*

0 commit comments

Comments
 (0)