Skip to:
Content

BuddyPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6553 closed enhancement (fixed)

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

Reported by: boonebgorges Owned by: 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
5 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
5 years ago

Good find, Boone!

Note: See TracTickets for help on using tickets.