Make WordPress Core


Ignore:
Timestamp:
07/07/2015 12:57:04 AM (9 years ago)
Author:
boonebgorges
Message:

Use assertEqualSets() in WP_Query::parse_tax_query() tests.

Props ocean90.
See #32454.

File:
1 edited

Legend:

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

    r33095 r33102  
    156156        $this->go_to( $url );
    157157
    158         $this->assertEquals( array( $p1, $p2 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
     158        $this->assertEqualSets( array( $p1, $p2 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
    159159    }
    160160
     
    182182        $this->go_to( $url );
    183183
    184         $this->assertEquals( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
     184        $this->assertEqualSets( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
    185185    }
    186186
     
    211211        $this->go_to( $url );
    212212
    213         $this->assertEquals( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
     213        $this->assertEqualSets( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) );
    214214    }
    215215}
Note: See TracChangeset for help on using the changeset viewer.