[buddypress-trac] [BuddyPress Trac] #5965: test suite doesn't reset globals if go_to() is used twice in one test

buddypress-trac noreply at wordpress.org
Tue Oct 28 04:26:36 UTC 2014


#5965: test suite doesn't reset globals if go_to() is used twice in one test
--------------------------+---------------------
 Reporter:  DJPaul        |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.2
Component:  Unit Tests    |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9093"]:
 {{{
 #!CommitTicketReference repository="" revision="9093"
 Tests: make sure globals are reset when the `go_to` helper method is used
 to simulate a GET request.

 This fixes a problem where `go_to` is used multiple times in one test, and
 the globals end up with incorrect/unexpected values for the second call; a
 situation which is likely to occur very infrequently.

 Fixes #5965
 }}}

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


More information about the buddypress-trac mailing list