Skip to:
Content

bbPress.org

Changeset 5941


Ignore:
Timestamp:
10/27/2015 09:03:59 AM (4 years ago)
Author:
netweb
Message:

Tests: Use assertEqualSets() in:

  • BBP_Tests_Forums_Functions_Query::test_bbp_forum_query_topic_ids
  • BBP_Tests_Forums_Functions_Query::test_bbp_forum_query_subforum_ids

This changeset improves array comparisons where that arrays may not be in the same order.

Props thebrandonallen. See #2883

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/forums/functions/query.php

    r5934 r5941  
    4848        ) );
    4949
    50         $this->assertEquals( array( $t1, $t2, $t3 ), bbp_forum_query_topic_ids( $f ) );
     50        $this->assertEqualSets( array( $t1, $t2, $t3 ), bbp_forum_query_topic_ids( $f ) );
    5151    }
    5252
     
    6565        ) );
    6666
    67         $this->assertEquals( array( $f2, $f3 ), bbp_forum_query_subforum_ids( $f1 ) );
     67        $this->assertEqualSets( array( $f2, $f3 ), bbp_forum_query_subforum_ids( $f1 ) );
    6868    }
    6969
Note: See TracChangeset for help on using the changeset viewer.