Make WordPress Core


Ignore:
Timestamp:
03/03/2014 04:20:12 PM (11 years ago)
Author:
markjaquith
Message:

Eliminate some of our last remaining create_function() instances

  • Moved some into private function callbacks
  • Eliminated some that weren't necessary anymore

props obenland, markjaquith, nacin. fixes #14424

File:
1 edited

Legend:

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

    r27349 r27373  
    228228    }
    229229
     230    function test_ordering_of_importers() {
     231        global $wp_importers;
     232        $_wp_importers = $wp_importers; // Preserve global state
     233        $wp_importers = array(
     234            'xyz1' => array( 'xyz1' ),
     235            'XYZ2' => array( 'XYZ2' ),
     236            'abc2' => array( 'abc2' ),
     237            'ABC1' => array( 'ABC1' ),
     238            'def1' => array( 'def1' ),
     239        );
     240        $this->assertEquals( array(
     241            'ABC1' => array( 'ABC1' ),
     242            'abc2' => array( 'abc2' ),
     243            'def1' => array( 'def1' ),
     244            'xyz1' => array( 'xyz1' ),
     245            'XYZ2' => array( 'XYZ2' ),
     246        ), get_importers() );
     247        $wp_importers = $_wp_importers; // Restore global state
     248    }
     249
    230250    // function test_menu_import
    231251}
Note: See TracChangeset for help on using the changeset viewer.