Changeset 57926 for trunk/tests/phpunit/tests/db.php
- Timestamp:
- 04/04/2024 03:11:37 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r57089 r57926 1440 1440 global $wpdb; 1441 1441 1442 if ( ! $wpdb->has_cap( 'utf8mb4' ) ) {1443 $this->markTestSkipped( 'This test requires utf8mb4 support.' );1444 }1445 1446 1442 $charset = 'utf8'; 1447 1443 $collate = 'utf8_general_ci'; … … 1478 1474 global $wpdb; 1479 1475 1480 if ( ! $wpdb->has_cap( 'utf8mb4' ) ) {1481 $this->markTestSkipped( 'This test requires utf8mb4 support.' );1482 }1483 1484 1476 $charset = 'utf8'; 1485 1477 $collate = 'utf8_swedish_ci'; … … 1488 1480 1489 1481 $this->assertSame( 'utf8mb4_swedish_ci', $result['collate'] ); 1490 }1491 1492 /**1493 * @ticket 379821494 */1495 public function test_charset_switched_to_utf8() {1496 global $wpdb;1497 1498 if ( $wpdb->has_cap( 'utf8mb4' ) ) {1499 $this->markTestSkipped( 'This test requires utf8mb4 to not be supported.' );1500 }1501 1502 $charset = 'utf8mb4';1503 $collate = 'utf8mb4_general_ci';1504 1505 $result = $wpdb->determine_charset( $charset, $collate );1506 1507 $this->assertSame( 'utf8', $result['charset'] );1508 $this->assertSame( 'utf8_general_ci', $result['collate'] );1509 1482 } 1510 1483
Note: See TracChangeset
for help on using the changeset viewer.