Make WordPress Core

Changeset 40454


Ignore:
Timestamp:
04/15/2017 09:23:45 PM (9 years ago)
Author:
johnbillion
Message:

Remove failing is_textdomain_loaded() test.

See #30284.

Merges [30521] to the 4.0 branch.

See #40463

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/tests/phpunit/tests/l10n.php

    r25407 r40454  
    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.