Skip to content

Commit 0789538

Browse files
committed
Update method name in tests
1 parent 27a9781 commit 0789538

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,11 +1021,11 @@ public function test_ensure_next_token_method_extensibility( $html, $expected_to
10211021
/**
10221022
* @ticket TBD
10231023
*/
1024-
public function test_spawn_fragment_parser_in_foreign_content() {
1024+
public function test_create_fragment_at_current_node_in_foreign_content() {
10251025
$processor = WP_HTML_Processor::create_full_parser( '<svg>' );
10261026
$this->assertTrue( $processor->next_tag( 'SVG' ) );
10271027

1028-
$fragment = $processor->spawn_fragment_parser( "\0preceded-by-nul-byte<rect /><circle></circle><foreignobject><div></div></foreignobject><g>" );
1028+
$fragment = $processor->create_fragment_at_current_node( "\0preceded-by-nul-byte<rect /><circle></circle><foreignobject><div></div></foreignobject><g>" );
10291029

10301030
$this->assertSame( 'svg', $fragment->get_namespace() );
10311031
$this->assertTrue( $fragment->next_token() );
@@ -1049,11 +1049,11 @@ public function test_spawn_fragment_parser_in_foreign_content() {
10491049
/**
10501050
* @ticket TBD
10511051
*/
1052-
public function test_spawn_fragment_parser_in_foreign_content_integration_point() {
1052+
public function test_create_fragment_at_current_node_in_foreign_content_integration_point() {
10531053
$processor = WP_HTML_Processor::create_full_parser( '<svg><foreignObject>' );
10541054
$this->assertTrue( $processor->next_tag( 'foreignObject' ) );
10551055

1056-
$fragment = $processor->spawn_fragment_parser( "<image>\0not-preceded-by-nul-byte<rect />" );
1056+
$fragment = $processor->create_fragment_at_current_node( "<image>\0not-preceded-by-nul-byte<rect />" );
10571057

10581058
// Nothing has been processed, the html namespace should be used for parsing as an integration point.
10591059
$this->assertSame( 'html', $fragment->get_namespace() );

0 commit comments

Comments
 (0)