Changeset 903 in tests for trunk/tests/test_db.php
- Timestamp:
- 07/16/2012 05:24:25 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/test_db.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_db.php
r894 r903 13 13 */ 14 14 protected $_queries = array(); 15 15 16 16 /** 17 17 * Set up the test fixture … … 52 52 // Save the current locale 53 53 $current_locale = setlocale( LC_ALL, NULL ); 54 54 55 55 // Switch to Russian 56 56 $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' ); 57 57 if ( false === $flag ) 58 58 $this->markTestSkipped( 'No European languages available for testing' ); 59 59 60 60 // Try an update query 61 61 $wpdb->suppress_errors( true ); 62 $wpdb->update( 63 'test_table', 64 array( 'float_column' => 0.7 ), 65 array( 'meta_id' => 5 ), 66 array( '%f' ), 67 array( '%d' ) 62 $wpdb->update( 63 'test_table', 64 array( 'float_column' => 0.7 ), 65 array( 'meta_id' => 5 ), 66 array( '%f' ), 67 array( '%d' ) 68 68 ); 69 69 $wpdb->suppress_errors( false ); 70 70 71 71 // Ensure the float isn't 0,700 72 72 $this->assertContains( '0.700', array_pop( $this->_queries ) );
Note: See TracChangeset
for help on using the changeset viewer.