[wp-trac] [WordPress Trac] #42044: _test_list_hierarchical_page() - improve clean-up

WordPress Trac noreply at wordpress.org
Sat Sep 30 18:16:02 UTC 2017


#42044: _test_list_hierarchical_page() - improve clean-up
------------------------------+-----------------------------
 Reporter:  birgire           |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 The {{{_test_list_hierarchical_page()}}} helper method modifies
 {{{$_REQUEST}}} and {{{$GLOBALS}}}, but does not unset it afterwards.

 It affected a new test I was writing in a strange way, see #40188.

 There might be other test methods, that modify globals, without a clean-up
 afterwards.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42044>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list