Make WordPress Core

Changeset 34623


Ignore:
Timestamp:
09/27/2015 02:00:49 AM (8 years ago)
Author:
boonebgorges
Message:

WP_Comment::get_children() test should be order-agnostic.

See #8071.

File:
1 edited

Legend:

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

    r34599 r34623  
    335335
    336336        // Direct descendants of $c1.
    337         $this->assertEquals( array( $c2, $c4 ), array_values( wp_list_pluck( $children, 'comment_ID' ) ) );
     337        $this->assertEqualSets( array( $c2, $c4 ), array_values( wp_list_pluck( $children, 'comment_ID' ) ) );
    338338
    339339        // Direct descendants of $c2.
    340         $this->assertEquals( array( $c3 ), array_values( wp_list_pluck( $children[ $c2 ]->get_children(), 'comment_ID' ) ) );
     340        $this->assertEqualSets( array( $c3 ), array_values( wp_list_pluck( $children[ $c2 ]->get_children(), 'comment_ID' ) ) );
    341341    }
    342342
Note: See TracChangeset for help on using the changeset viewer.