Make WordPress Core

Changeset 36116


Ignore:
Timestamp:
12/29/2015 04:39:02 AM (8 years ago)
Author:
pento
Message:

Tests: When testing the utf8mb4 charset, ensure that the current MySQL server has utf8mb4 support.

See #35249.

File:
1 edited

Legend:

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

    r35655 r36116  
    358358        } else {
    359359            $new_charset = $data[0]['charset'];
     360        }
     361
     362        if ( 'utf8mb4' === $new_charset && ! self::$_wpdb->has_cap( 'utf8mb4' ) ) {
     363            $this->markTestSkipped( "The current MySQL server doesn't support the utf8mb4 character set." );
    360364        }
    361365
Note: See TracChangeset for help on using the changeset viewer.