Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/08/2016 09:38:46 PM (11 years ago)
Author:
boonebgorges
Message:

Use unformatted group count when deciding whether to use the 'no-count' in user nav.

A number of problems can arise when using a formatted group count for this
comparison, because formatted counts are strings.

Fixes #6813.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/groups/class-bp-groups-member.php

    r10227 r10445  
    11971197                $this->assertEqualSets( array( $u1, $u2, $u3 ), $members->user_ids );
    11981198        }
     1199
     1200        /**
     1201         * @group total_group_count
     1202         * @ticket BP6813
     1203         */
     1204        public function test_total_group_count_should_return_integer() {
     1205                $this->assertInternalType( 'int', BP_Groups_Member::total_group_count( 123 ) );
     1206        }
    11991207}
Note: See TracChangeset for help on using the changeset viewer.