From c2310522803428f84e3cc24b646a3485a739b680 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 23 May 2016 06:26:01 +0000 Subject: [PATCH] Tests: Remove a test for a function that can't be tested. `wpdb::init_charset()` doesn't lend itself to being tested, so the unit test added in [37521] won't work under most circumstances. See #32405. git-svn-id: https://develop.svn.wordpress.org/trunk@37522 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/db.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tests/phpunit/tests/db.php b/tests/phpunit/tests/db.php index 20ed791b53..f49a3e07b6 100644 --- a/tests/phpunit/tests/db.php +++ b/tests/phpunit/tests/db.php @@ -955,25 +955,4 @@ class Tests_DB extends WP_UnitTestCase { $wpdb->check_connection(); } - - /** - * @ticket 32405 - */ - function test_non_unicode_collations() { - global $wpdb; - - if ( ! $wpdb->has_cap( 'utf8mb4' ) ) { - $this->markTestSkipped( 'This test requires utf8mb4 support' ); - } - - $charset = $wpdb->charset; - $collate = $wpdb->collate; - - $wpdb->init_charset( 'utf8', 'utf8_swedish_ci' ); - - $this->assertSame( 'utf8mb4', $wpdb->charset ); - $this->assertSame( 'utf8mb4_swedish_ci', $wpdb->collate ); - - $wpdb->init_charset( $charset, $collate ); - } }