[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
Mon Oct 27 05:55:36 UTC 2014


#5965: test suite doesn't reset globals if go_to() is used twice in one test
--------------------------+-----------------
 Reporter:  DJPaul        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.2
Component:  Unit Tests    |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 The unit test suite doesn't reset all BP's globals if `go_to` is used
 twice in one test. There aren't many places this happens in existing core
 tests (`test_visibility_private` is one instance), I discovered this while
 writing tests for #5865.

 We rely on `clean_up_global_scope` to tidy up, and WordPress calls that
 method during each test's `setUp` method -- which is fine, assuming each
 test only uses `go_to` once.

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


More information about the buddypress-trac mailing list