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/testcases/xprofile/class-bp-xprofile-field.php

    r7419 r7873  
    1616        $group = $this->factory->xprofile_group->create();
    1717        $field = $this->factory->xprofile_field->create( array(
    18             'field_group_id' => $group->id,
     18            'field_group_id' => $group,
    1919            'type' => 'textbox',
    2020        ) );
    2121
    22         $f = new BP_XProfile_Field( $field->id );
     22        $f = new BP_XProfile_Field( $field );
    2323        $f->can_delete = 0;
    2424        $f->save();
    2525
    26         $f2 = new BP_XProfile_Field( $field->id );
     26        $f2 = new BP_XProfile_Field( $field );
    2727        $this->assertEquals( '0', $f2->can_delete );
    2828    }
Note: See TracChangeset for help on using the changeset viewer.