Tests: Since [31733], we now encode emoji in posts, instead of removing them (when they're being stored in versions of MySQL that don't support utf8mb4
).
git-svn-id: https://develop.svn.wordpress.org/trunk@31782 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3503aa4820
commit
1c63c533b1
@ -1055,9 +1055,9 @@ class Tests_Post extends WP_UnitTestCase {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'post_title' => "foobar",
|
'post_title' => "foo😈bar",
|
||||||
'post_content' => "foobaz",
|
'post_content' => "foo😎baz",
|
||||||
'post_excerpt' => "foobat"
|
'post_excerpt' => "fooὡbat"
|
||||||
);
|
);
|
||||||
|
|
||||||
edit_post( $data );
|
edit_post( $data );
|
||||||
@ -1065,7 +1065,7 @@ class Tests_Post extends WP_UnitTestCase {
|
|||||||
$post = get_post( $post_id );
|
$post = get_post( $post_id );
|
||||||
|
|
||||||
foreach( $expected as $field => $value ) {
|
foreach( $expected as $field => $value ) {
|
||||||
$this->assertEquals( $post->$field, $value );
|
$this->assertEquals( $value, $post->$field );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user