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
This commit is contained in:
parent
4422aac17c
commit
c231052280
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user