Make WordPress Core

Changeset 747 in tests


Ignore:
Timestamp:
06/28/2012 07:50:22 PM (13 years ago)
Author:
kurtpayne
Message:
  • Trying more languages for this test
    • Skipping the test if no languages are available
    • Suppressing database errors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_db.php

    r746 r747  
    5252       
    5353        // Switch to Russian
    54         setlocale( LC_ALL, 'ru_RU.utf8', 'rus' );
     54        $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' );
     55        if ( false === $flag )
     56            $this->markTestSkipped( 'No European languages available for testing' );
    5557       
    5658        // Try an update query
     59        $wpdb->suppress_errors( true );
    5760        $wpdb->update(
    5861            'test_table',
     
    6265            array( '%d' )
    6366        );
     67        $wpdb->suppress_errors( false );
    6468       
    6569        // Ensure the float isn't 0,700
Note: See TracChangeset for help on using the changeset viewer.