Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/26/2017 10:14:20 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Queries: Update orderby clauses of last-id queries to ensure more accurate results, specifically for imported forums and posts where IDs and post_date columns might be inverted.

Also update a few tests to be less cranky with exact array results.

Props thebrandonallen. Fixes #3108.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/topics/functions/status.php

    r5931 r6434  
    148148
    149149        $topic_meta_pre_spammed_replies = get_post_meta( $t, '_bbp_pre_spammed_replies', true );
    150         $this->assertEquals( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies );
     150        $this->assertEqualSets( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies );
    151151
    152152        $topic_spam_meta_status = get_post_meta( $t, '_bbp_spam_meta_status', true );
     
    215215
    216216        $topic_meta_pre_spammed_replies = get_post_meta( $t, '_bbp_pre_spammed_replies', true );
    217         $this->assertEquals( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies );
     217        $this->assertEqualSets( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies );
    218218
    219219        foreach ( $r as $reply ) {
Note: See TracChangeset for help on using the changeset viewer.