From b6ac7c4f87e6e9649734ac87fadf7cad8138af72 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Mar 2020 11:53:34 +0000 Subject: [PATCH] Tests: Remove unnecessary use of `wpdb_exposed_methods_for_testing` in `test_utf8mb3_post_saves_with_emoji()`. Props clarinetlord. Fixes #39998. git-svn-id: https://develop.svn.wordpress.org/trunk@47431 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/tests/post.php b/tests/phpunit/tests/post.php index d4672212cc..ca18c41b0e 100644 --- a/tests/phpunit/tests/post.php +++ b/tests/phpunit/tests/post.php @@ -1004,9 +1004,8 @@ class Tests_Post extends WP_UnitTestCase { */ function test_utf8mb3_post_saves_with_emoji() { global $wpdb; - $_wpdb = new WpdbExposedMethodsForTesting(); - if ( 'utf8' !== $_wpdb->get_col_charset( $wpdb->posts, 'post_title' ) ) { + if ( 'utf8' !== $wpdb->get_col_charset( $wpdb->posts, 'post_title' ) ) { $this->markTestSkipped( 'This test is only useful with the utf8 character set' ); }