[wp-trac] [WordPress Trac] #28535: WP Unit Tests should reset hooks after each test
WordPress Trac
noreply at wordpress.org
Sat Jul 19 23:58:09 UTC 2014
#28535: WP Unit Tests should reset hooks after each test
------------------------------+-----------------------------
Reporter: mnelson4 | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.0
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: needs-patch | Focuses:
------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"29251"]:
{{{
#!CommitTicketReference repository="" revision="29251"
Backup filter globals ( `$merged_filters, $wp_actions, $wp_current_filter,
$wp_filter` ) statically when running unit tests, restore on `tearDown()`.
This ensures that all tests initially use the same filters/actions.
Props mnelson4, wonderboymusic.
Fixes #28535.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28535#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list