Make WordPress Core

Changeset 903 in tests for trunk/tests/test_db.php


Ignore:
Timestamp:
07/16/2012 05:24:25 PM (14 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_db.php

    r894 r903  
    1313         */
    1414        protected $_queries = array();
    15        
     15
    1616        /**
    1717         * Set up the test fixture
     
    5252                // Save the current locale
    5353                $current_locale = setlocale( LC_ALL, NULL );
    54                
     54
    5555                // Switch to Russian
    5656                $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' );
    5757                if ( false === $flag )
    5858                        $this->markTestSkipped( 'No European languages available for testing' );
    59                
     59
    6060                // Try an update query
    6161                $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' )
    6868                );
    6969                $wpdb->suppress_errors( false );
    70                
     70
    7171                // Ensure the float isn't 0,700
    7272                $this->assertContains( '0.700', array_pop( $this->_queries ) );
Note: See TracChangeset for help on using the changeset viewer.