Make WordPress Core

Changeset 29134


Ignore:
Timestamp:
07/13/2014 11:27:07 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Use assertEqualSets() instead of direct array comparison.

see #28434.

File:
1 edited

Legend:

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

    r29045 r29134  
    197197        $comment_ids = get_comments( array( 'fields' => 'ids' ) );
    198198        $this->assertCount( 3, $comment_ids );
    199         $this->assertEquals( array( $comment_1, $comment_2, $comment_3 ), $comment_ids );
     199        $this->assertEqualSets( array( $comment_1, $comment_2, $comment_3 ), $comment_ids );
    200200    }
    201201}
Note: See TracChangeset for help on using the changeset viewer.