Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/09/2013 02:11:52 PM (12 years ago)
Author:
boonebgorges
Message:

In test suite, factory->activity->create() should return an id, not an object

Two reasons: The value that's almost always needed is an ID, and it's more
consistent with WP's factories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/includes/factory.php

    r6905 r7047  
    3131            $args['user_id'] = get_current_user_id();
    3232
    33         return $this->get_object_by_id( bp_activity_add( $args ) );
     33        return bp_activity_add( $args );
    3434    }
    3535
Note: See TracChangeset for help on using the changeset viewer.