Changeset 57926 for trunk/tests/phpunit/tests/db/charset.php
- Timestamp:
- 04/04/2024 03:11:37 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db/charset.php
r57239 r57926 521 521 } else { 522 522 $new_charset = $data[0]['charset']; 523 }524 525 if ( 'utf8mb4' === $new_charset && ! self::$_wpdb->has_cap( 'utf8mb4' ) ) {526 $this->markTestSkipped( "The current MySQL server doesn't support the utf8mb4 character set." );527 523 } 528 524 … … 796 792 public function test_get_table_charset( $drop, $create, $table, $expected_charset ) { 797 793 self::$_wpdb->query( $drop ); 798 799 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) {800 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." );801 }802 803 794 self::$_wpdb->query( $create ); 804 795 … … 837 828 public function test_get_column_charset( $drop, $create, $table, $expected_charset ) { 838 829 self::$_wpdb->query( $drop ); 839 840 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) {841 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." );842 }843 844 830 self::$_wpdb->query( $create ); 845 831 … … 865 851 self::$_wpdb->query( $drop ); 866 852 867 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) {868 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." );869 }870 871 853 self::$_wpdb->is_mysql = false; 872 854 … … 891 873 public function test_get_column_charset_is_mysql_undefined( $drop, $create, $table, $columns ) { 892 874 self::$_wpdb->query( $drop ); 893 894 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) {895 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." );896 }897 875 898 876 unset( self::$_wpdb->is_mysql ); … … 953 931 public function test_strip_invalid_text_from_query( $create, $query, $expected, $drop ) { 954 932 self::$_wpdb->query( $drop ); 955 956 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) {957 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." );958 }959 960 933 self::$_wpdb->query( $create ); 961 934
Note: See TracChangeset
for help on using the changeset viewer.