mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24:36 +00:00
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:
@@ -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' ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user