Skip to content

Commit 102c39b

Browse files
Tests: Use assertEqualHTML() in Script Modules HTML tests.
This aims to make the tests more robust. Follow-up to [58579]. Props jonsurrell. See #64225. git-svn-id: https://develop.svn.wordpress.org/trunk@61391 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5df7861 commit 102c39b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/phpunit/tests/script-modules/wpScriptModules.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ function ( $data ) {
12341234
</script>
12351235
12361236
HTML;
1237-
$this->assertSame( $expected, $actual );
1237+
$this->assertEqualHTML( $expected, $actual );
12381238
}
12391239

12401240
/**
@@ -1259,7 +1259,7 @@ function ( $data ) {
12591259
</script>
12601260
12611261
HTML;
1262-
$this->assertSame( $expected, $actual );
1262+
$this->assertEqualHTML( $expected, $actual );
12631263
}
12641264

12651265
/**
@@ -1332,7 +1332,7 @@ function ( $data ) use ( $input ) {
13321332
13331333
HTML;
13341334

1335-
$this->assertSame( $expected, $actual );
1335+
$this->assertEqualHTML( $expected, $actual );
13361336
}
13371337

13381338
/**

0 commit comments

Comments
 (0)