Skip to:
Content

BuddyPress.org

Changeset 7986


Ignore:
Timestamp:
02/25/2014 03:07:40 PM (11 years ago)
Author:
boonebgorges
Message:

More specific assertions for bp_group_has_invites() template tests. See #5427

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/groups/template.php

    r7984 r7986  
    473473        while ( bp_group_invites() ) : bp_group_the_invite();
    474474            $this->assertEquals( $g, $invites_template->invite->group_id );
    475             $this->assertEquals( $found_users[ $counter ], $invites_template->invite->user->id );
     475
     476            $this_user = new BP_Core_User( $found_users[ $counter ] );
     477            foreach ( get_object_vars( $this_user ) as $k => $v ) {
     478                $this->assertEquals( $v, $invites_template->invite->user->{$k} );
     479            }
    476480            $counter++;
    477481        endwhile;
Note: See TracChangeset for help on using the changeset viewer.