Skip to content

Commit 5307de8

Browse files
committed
Fix two broken tests on CDATA behavior
1 parent 80f1c8f commit 5307de8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/phpunit/tests/formatting/wpAutop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public function data_element_sanity() {
538538
),
539539
array(
540540
"Hello <![CDATA[ <!-- a\nhttps://youtu.be/jgz0uSaOZbE\n a\n9 --> a\n9 ]]>",
541-
"<p>Hello <![CDATA[ <!-- a\nhttps://youtu.be/jgz0uSaOZbE\n a\n9 --> a\n9 ]]></p>\n",
541+
"<p>Hello <![CDATA[ <!-- a\nhttps://youtu.be/jgz0uSaOZbE\n a\n9 --> a<br />\n9 ]]></p>\n",
542542
),
543543
);
544544
}

tests/phpunit/tests/formatting/wpHtmlSplit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function data_basic_features() {
3232
),
3333
array(
3434
'abcd <![CDATA[ <html> ]]> efgh',
35-
array( 'abcd ', '<![CDATA[ <html> ]]>', ' efgh' ),
35+
array( 'abcd ', '<![CDATA[ <html>', ' ]]> efgh' ),
3636
),
3737
);
3838
}

0 commit comments

Comments
 (0)