[buddypress-trac] [BuddyPress Trac] #5983: groups can be created with creator_id = 0

buddypress-trac noreply at wordpress.org
Mon Nov 3 18:14:07 UTC 2014


#5983: groups can be created with creator_id = 0
--------------------------+------------------
 Reporter:  DJPaul        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.2
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by djpaul):

 In [changeset:"9120"]:
 {{{
 #!CommitTicketReference repository="" revision="9120"
 Unit Tests, Groups: update the group factory to set the group's
 `creator_id` if one was not passed to the factory.

 This is a quicker way of updating hundreds of unit tests where we've
 previously had a bug that was creating Groups without a valid group
 creator being set. See #5983 for related changes.

 A few tests are counting the number of users in specific circumstances, so
 those eight tests have been individually updated so that they pass a valid
 `creator_id` without us having to refactor the entire test.

 The `test_group_has_no_members` test has also been removed as it is
 impossible for a group to have no members. This test used to work because
 of this bug.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5983#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list