WordPress.org

Make WordPress Core

Changeset 37522


Ignore:
Timestamp:
05/23/2016 06:26:01 AM (3 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db.php

    r37521 r37522  
    956956        $wpdb->check_connection();
    957957    }
    958 
    959     /**
    960      * @ticket 32405
    961      */
    962     function test_non_unicode_collations() {
    963         global $wpdb;
    964 
    965         if ( ! $wpdb->has_cap( 'utf8mb4' ) ) {
    966             $this->markTestSkipped( 'This test requires utf8mb4 support' );
    967         }
    968 
    969         $charset = $wpdb->charset;
    970         $collate = $wpdb->collate;
    971 
    972         $wpdb->init_charset( 'utf8', 'utf8_swedish_ci' );
    973 
    974         $this->assertSame( 'utf8mb4', $wpdb->charset );
    975         $this->assertSame( 'utf8mb4_swedish_ci', $wpdb->collate );
    976 
    977         $wpdb->init_charset( $charset, $collate );
    978     }
    979958}
Note: See TracChangeset for help on using the changeset viewer.