Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/09/2018 07:53:28 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tests: get all post type/status counts using bbp_get_child_counts().

  • Fix a broken test, and improve a few others
  • Update several count() instances that were doing expensive _ids() counts
  • Strategically bust the bbpress_posts query cache group on updates

This change improves general performance and count reliability by ensuring the accuracy of forum/topic/reply relationship totals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/admin/tools.php

    r6585 r6848  
    642642        ) );
    643643
    644         // Forums should NOT have a _bbp_forum_id meta key
    645         $this->assertEquals( array(), get_post_meta( $f, '_bbp_forum_id', false ) );
     644        // Forums should have an empty _bbp_forum_id meta key
     645        $this->assertEquals( array( 0 => '0' ), get_post_meta( $f, '_bbp_forum_id', false ) );
    646646
    647647        // Topics should have a _bbp_forum_id meta key
Note: See TracChangeset for help on using the changeset viewer.