Skip to:
Content

BuddyPress.org

Ticket #6036: 6036.patch

File 6036.patch, 518 bytes (added by imath, 11 years ago)
  • tests/phpunit/testcases/groups/cache.php

    diff --git tests/phpunit/testcases/groups/cache.php tests/phpunit/testcases/groups/cache.php
    index f7216f1..a7ffaeb 100644
    class BP_Tests_Group_Cache extends BP_UnitTestCase { 
    163163                $u2 = $this->factory->user->create();
    164164                $g = $this->factory->group->create( array( 'creator_id' => $u1 ) );
    165165
     166                // User 2 joins the group
     167                groups_join_group( $g, $u2 );
     168
    166169                // prime cache
    167170                groups_get_group_admins( $g );
    168171