[wp-trac] [WordPress Trac] #28535: WP Unit Tests should reset hooks after each test

WordPress Trac noreply at wordpress.org
Sun Jun 15 17:27:47 UTC 2014


#28535: WP Unit Tests should reset hooks after each test
------------------------------+------------------------------
 Reporter:  mnelson4          |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+------------------------------

Comment (by nacin):

 Note we'd need to back up $wp_filter as well. The actions array holds
 counters on what's been run; $wp_filter does most of the work.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28535#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list