Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/14/2014 12:17:53 PM (11 years ago)
Author:
boonebgorges
Message:

Tests: xprofile factory create() methods should return IDs, not objects

This is more consistent with other components

File:
1 edited

Legend:

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

    r7521 r7873  
    114114    function create_object( $args ) {
    115115        $group_id = xprofile_insert_field_group( $args );
    116         return $this->get_object_by_id( $group_id );
     116        return $group_id;
    117117    }
    118118
     
    138138    function create_object( $args ) {
    139139        $field_id = xprofile_insert_field( $args );
    140         return $this->get_object_by_id( $field_id );
     140        return $field_id;
    141141    }
    142142
Note: See TracChangeset for help on using the changeset viewer.