factory->xprofile_group->create(); $field = $this->factory->xprofile_field->create( array( 'field_group_id' => $group, 'type' => 'textbox', ) ); $f = new BP_XProfile_Field( $field ); $f->can_delete = 0; $f->save(); $f2 = new BP_XProfile_Field( $field ); $this->assertEquals( '0', $f2->can_delete ); } }