WordPress.org

Make WordPress Core

Changeset 30266


Ignore:
Timestamp:
11/06/2014 10:27:34 PM (7 years ago)
Author:
boonebgorges
Message:

Use assertEqualSets() for some WP_Comment_Query tests.

File:
1 edited

Legend:

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

    r30135 r30266  
    2828        ) );
    2929
    30         $this->assertEquals( array( $c1, $c2, $c3, $c4, $c5 ), $found );
     30        $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c5 ), $found );
    3131    }
    3232
     
    4747        ) );
    4848
    49         $this->assertEquals( array( $c1, $c2, $c3, $c4, $c5 ), $found );
     49        $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c5 ), $found );
    5050    }
    5151
     
    6666        ) );
    6767
    68         $this->assertEquals( array( $c1 ), $found );
     68        $this->assertEqualSets( array( $c1 ), $found );
    6969    }
    7070
     
    8181        ) );
    8282
    83         $this->assertEquals( array( $c2, $c3 ), $found );
     83        $this->assertEqualSets( array( $c2, $c3 ), $found );
    8484
    8585    }
     
    9797        ) );
    9898
    99         $this->assertEquals( array( $c2, $c3 ), $found );
     99        $this->assertEqualSets( array( $c2, $c3 ), $found );
    100100
    101101    }
     
    117117        ) );
    118118
    119         $this->assertEquals( array( $c2, $c3 ), $found );
     119        $this->assertEqualSets( array( $c2, $c3 ), $found );
    120120    }
    121121
     
    138138        ) );
    139139
    140         $this->assertEquals( array( $c1, $c4, $c6 ), $found );
     140        $this->assertEqualSets( array( $c1, $c4, $c6 ), $found );
    141141    }
    142142
     
    158158        ) );
    159159
    160         $this->assertEquals( array( $c1, $c2, $c3, $c4, $c6 ), $found );
     160        $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c6 ), $found );
    161161    }
    162162
     
    179179        ) );
    180180
    181         $this->assertEquals( array( $c1 ), $found );
     181        $this->assertEqualSets( array( $c1 ), $found );
    182182    }
    183183
     
    200200        ) );
    201201
    202         $this->assertEquals( array( $c2, $c3 ), $found );
     202        $this->assertEqualSets( array( $c2, $c3 ), $found );
    203203    }
    204204
     
    220220        ) );
    221221
    222         $this->assertEquals( array( $c1, $c2, $c3, $c4, $c6 ), $found );
     222        $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c6 ), $found );
    223223    }
    224224
     
    239239        ) );
    240240
    241         $this->assertEquals( array( $c1, $c2, $c3 ), $found );
     241        $this->assertEqualSets( array( $c1, $c2, $c3 ), $found );
    242242    }
    243243
     
    256256        ) );
    257257
    258         $this->assertEquals( array( $c1, $c2, $c3 ), $found );
     258        $this->assertEqualSets( array( $c1, $c2, $c3 ), $found );
    259259    }
    260260
     
    307307        ) );
    308308
    309         $this->assertEquals( array( $c2, $c3 ), $found );
     309        $this->assertEqualSets( array( $c2, $c3 ), $found );
    310310    }
    311311
Note: See TracChangeset for help on using the changeset viewer.