Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#6553 closed enhancement (fixed)

xprofile_field factory `create()` should have a default value for 'type'

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 2.4 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Cc:

Description

xprofile_insert_field() requires a type argument. During unit tests, this is almost always set to 'textbox', just for the sake of having something set. Let's make this the default value when generating fixtures in unit tests.

Change History (2)

#1 @boonebgorges
9 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 10004:

When generating fixtures during automated tests, use the default 'type' of 'textbox' for xprofile fields.

Fixes #6553.

#2 @johnjamesjacoby
9 years ago

Good find, Boone!

Note: See TracTickets for help on using tickets.