Make WordPress Core

Changeset 30521


Ignore:
Timestamp:
11/22/2014 08:36:51 PM (10 years ago)
Author:
boonebgorges
Message:

Remove failing is_textdomain_loaded() test.

The removed test has been added as a patch to the original ticket, #21319.

Props MikeHansenMe.
See #30284.

File:
1 edited

Legend:

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

    r25407 r30521  
    1717        $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
    1818    }
    19 
    20     /**
    21      * @ticket 21319
    22      */
    23     function test_is_textdomain_loaded_for_no_translations() {
    24         $this->assertFalse( load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/non-existent-file' ) );
    25         $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
    26         $this->assertInstanceOf( 'NOOP_Translations', get_translations_for_domain( 'wp-tests-domain' ) );
    27         // Ensure that we don't confuse NOOP_Translations to be a loaded text domain.
    28         $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
    29         $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
    30     }
    3119}
Note: See TracChangeset for help on using the changeset viewer.