@@ -35,7 +35,7 @@ public function test_post_content_unknown_tag() {
35
35
$ id = self ::factory ()->post ->create ( array ( 'post_content ' => $ content ) );
36
36
$ post = get_post ( $ id );
37
37
38
- $ this ->assertSame ( $ expected , $ post ->post_content );
38
+ $ this ->assertEqualHTML ( $ expected , $ post ->post_content );
39
39
}
40
40
41
41
// A simple test to make sure unbalanced tags are fixed.
@@ -52,7 +52,7 @@ public function test_post_content_unbalanced_tag() {
52
52
$ id = self ::factory ()->post ->create ( array ( 'post_content ' => $ content ) );
53
53
$ post = get_post ( $ id );
54
54
55
- $ this ->assertSame ( $ expected , $ post ->post_content );
55
+ $ this ->assertEqualHTML ( $ expected , $ post ->post_content );
56
56
}
57
57
58
58
// Test KSES filtering of disallowed attribute.
@@ -69,7 +69,7 @@ public function test_post_content_disallowed_attr() {
69
69
$ id = self ::factory ()->post ->create ( array ( 'post_content ' => $ content ) );
70
70
$ post = get_post ( $ id );
71
71
72
- $ this ->assertSame ( $ expected , $ post ->post_content );
72
+ $ this ->assertEqualHTML ( $ expected , $ post ->post_content );
73
73
}
74
74
75
75
/**
@@ -89,7 +89,7 @@ public function test_post_content_xhtml_empty_elem() {
89
89
$ id = self ::factory ()->post ->create ( array ( 'post_content ' => $ content ) );
90
90
$ post = get_post ( $ id );
91
91
92
- $ this ->assertSame ( $ expected , $ post ->post_content );
92
+ $ this ->assertEqualHTML ( $ expected , $ post ->post_content );
93
93
}
94
94
95
95
// Make sure unbalanced tags are untouched when the balance option is off.
@@ -109,6 +109,6 @@ public function test_post_content_nobalance_nextpage_more() {
109
109
$ id = self ::factory ()->post ->create ( array ( 'post_content ' => $ content ) );
110
110
$ post = get_post ( $ id );
111
111
112
- $ this ->assertSame ( $ content , $ post ->post_content );
112
+ $ this ->assertEqualHTML ( $ content , $ post ->post_content );
113
113
}
114
114
}
0 commit comments