Skip to content

Commit ce87818

Browse files
committed
Use assertEqualHTML in tests
1 parent ab27234 commit ce87818

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ public function test_table_templates_not_yet_supported() {
630630
*/
631631
public function test_atomic_element_attributes_are_replaced( string $template_string, array $replacements, string $expected ) {
632632
$result = T::from( $template_string )->bind( $replacements )->render();
633-
$this->assertSame( $expected, $result );
633+
$this->assertEqualHTML( $expected, $result );
634634
}
635635

636636
public static function data_atomic_element_attributes() {
@@ -680,7 +680,7 @@ public static function data_atomic_element_attributes() {
680680
*/
681681
public function test_special_element_content_placeholder_behavior( string $template_string, string $expected ) {
682682
$result = T::from( $template_string )->render();
683-
$this->assertSame( $expected, $result );
683+
$this->assertEqualHTML( $expected, $result );
684684
}
685685

686686
public static function data_atomic_element_content_placeholders() {
@@ -726,7 +726,7 @@ public static function data_atomic_element_content_placeholders() {
726726
*/
727727
public function test_pre_element_leading_newline_behavior( string $template_string, array $replacements, string $expected ) {
728728
$result = T::from( $template_string )->bind( $replacements )->render();
729-
$this->assertSame( $expected, $result );
729+
$this->assertEqualHTML( $expected, $result );
730730
}
731731

732732
public static function data_pre_element_leading_newline() {

0 commit comments

Comments
 (0)