Make WordPress Core

Changeset 25407


Ignore:
Timestamp:
09/12/2013 05:47:40 PM (11 years ago)
Author:
nacin
Message:

Revert [25405] and use a file that does exist. see #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n.php

    r25405 r25407  
    1111        $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
    1212
    13         $file = DIR_TESTDATA . '/wpcom-themes/p2/languages/es_ES.mo';
    14         if ( file_exists( $file ) ) {
    15             $this->assertTrue( load_textdomain( 'wp-tests-domain', $file ) );
    16             $this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) );
    17             $this->assertTrue( unload_textdomain( 'wp-tests-domain' ) );
    18         } else {
    19             $this->assertFalse( load_textdomain( 'wp-tests-domain', $file ) );
    20             $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
    21             $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
    22         }
     13        $file = DIR_TESTDATA . '/pomo/simple.mo';
     14        $this->assertTrue( load_textdomain( 'wp-tests-domain', $file ) );
     15        $this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) );
     16        $this->assertTrue( unload_textdomain( 'wp-tests-domain' ) );
    2317        $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
    2418    }
Note: See TracChangeset for help on using the changeset viewer.