From 1c63c533b1318a3f6551c886674313b216e0a8d2 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Sun, 15 Mar 2015 11:50:54 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/post.php b/tests/phpunit/tests/post.php index ae549e0444..3f8102ddec 100644 --- a/tests/phpunit/tests/post.php +++ b/tests/phpunit/tests/post.php @@ -1055,9 +1055,9 @@ class Tests_Post extends WP_UnitTestCase { ); $expected = array( - 'post_title' => "foobar", - 'post_content' => "foobaz", - 'post_excerpt' => "foobat" + 'post_title' => "foo😈bar", + 'post_content' => "foo😎baz", + 'post_excerpt' => "fooὡbat" ); edit_post( $data ); @@ -1065,7 +1065,7 @@ class Tests_Post extends WP_UnitTestCase { $post = get_post( $post_id ); foreach( $expected as $field => $value ) { - $this->assertEquals( $post->$field, $value ); + $this->assertEquals( $value, $post->$field ); } } }