Changeset 32232 for trunk/tests/phpunit/tests/db/charset.php
- Timestamp:
- 04/21/2015 05:10:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db/charset.php
r32162 r32232 506 506 $value[2] = "SELECT * FROM $this_table_name"; 507 507 $value[3] = "DROP TABLE IF EXISTS $this_table_name"; 508 $value[4] = array( 509 "SHOW FULL TABLES LIKE $this_table_name", 510 "DESCRIBE $this_table_name", 511 "DESC $this_table_name", 512 "EXPLAIN SELECT * FROM $this_table_name", 513 ); 508 514 } 509 515 unset( $value ); … … 517 523 * @ticket 21212 518 524 */ 519 function test_table_collation_check( $create, $expected, $query, $drop ) {525 function test_table_collation_check( $create, $expected, $query, $drop, $always_true ) { 520 526 self::$_wpdb->query( $drop ); 521 527 … … 525 531 $this->assertEquals( $expected, $return ); 526 532 533 foreach( $always_true as $true_query ) { 534 $return = self::$_wpdb->check_safe_collation( $true_query ); 535 $this->assertTrue( $return ); 536 } 537 527 538 self::$_wpdb->query( $drop ); 528 539 }
Note: See TracChangeset
for help on using the changeset viewer.