Make WordPress Core

Ticket #32454: 32454-ut.patch

File 32454-ut.patch, 1.0 KB (added by ocean90, 9 years ago)
  • tests/phpunit/tests/query.php

     
    155155
    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
    161161        public function test_custom_taxonomy_querystring_multiple_terms_comma_separated() {
     
    181181
    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
    187187        /**
     
    210210
    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}