forked from WordPress/wordpress-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimport.php
More file actions
32 lines (31 loc) · 715 Bytes
/
import.php
File metadata and controls
32 lines (31 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* @group import
*/
class Tests_Import_Import extends WP_UnitTestCase {
/**
* @covers ::get_importers
*/
public function test_ordering_of_importers() {
global $wp_importers;
$_wp_importers = $wp_importers; // Preserve global state.
$wp_importers = array(
'xyz1' => array( 'xyz1' ),
'XYZ2' => array( 'XYZ2' ),
'abc2' => array( 'abc2' ),
'ABC1' => array( 'ABC1' ),
'def1' => array( 'def1' ),
);
$this->assertSame(
array(
'ABC1' => array( 'ABC1' ),
'abc2' => array( 'abc2' ),
'def1' => array( 'def1' ),
'xyz1' => array( 'xyz1' ),
'XYZ2' => array( 'XYZ2' ),
),
get_importers()
);
$wp_importers = $_wp_importers; // Restore global state.
}
}