Use `assertEqualSets()` in `WP_Query::parse_tax_query()` tests.
Props ocean90. See #32454. git-svn-id: https://develop.svn.wordpress.org/trunk@33102 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6d8f6f8d11
commit
8e6997b652
|
@ -155,7 +155,7 @@ class Tests_Query extends WP_UnitTestCase {
|
|||
|
||||
$this->go_to( $url );
|
||||
|
||||
$this->assertEquals( array( $p1, $p2 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
|
||||
$this->assertEqualSets( array( $p1, $p2 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
|
||||
}
|
||||
|
||||
public function test_custom_taxonomy_querystring_multiple_terms_comma_separated() {
|
||||
|
@ -181,7 +181,7 @@ class Tests_Query extends WP_UnitTestCase {
|
|||
|
||||
$this->go_to( $url );
|
||||
|
||||
$this->assertEquals( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
|
||||
$this->assertEqualSets( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,6 +210,6 @@ class Tests_Query extends WP_UnitTestCase {
|
|||
|
||||
$this->go_to( $url );
|
||||
|
||||
$this->assertEquals( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
|
||||
$this->assertEqualSets( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue