Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

#7243 closed enhancement (fixed)

Add PHPUnit factory for friendships

Reported by: jdgrimes's profile jdgrimes Owned by: boonebgorges's profile boonebgorges
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch
Cc:

Description

There are factories for most other objects, but not for friendships. Admittedly, friendships don't really have a lot of fields, which may be why no factory has been introduced for them. Still it is useful to have one when you just want a friendship object and don't want to have to create two users and manually construct it. Anyway, I expected there to be a factory for them, and there wasn't, so I figured its worth adding one for parity.

Attachments (1)

7243.diff (1.4 KB) - added by jdgrimes 8 years ago.

Download all attachments as: .zip

Change History (3)

@jdgrimes
8 years ago

#1 @boonebgorges
8 years ago

  • Milestone changed from Awaiting Review to 2.7

Thanks, @jdgrimes!

#2 @boonebgorges
8 years ago

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

In 11063:

Tests: Add Friendship factory.

Props jdgrimes.
Fixes #7243.

Note: See TracTickets for help on using tickets.