wordpress-develop/tests/phpunit/includes
Gary Pendergast 40ebbc7713 Tests: Use add_filter() when it's available.
The `tests_add_filter()` helper function directly manipulates the `$wp_filter` global, instead of using `add_filter()`. We can use `add_filter()` when it's available, and fall back to manipulating `$wp_filter` when it isn't, relying on the `$wp_filter` bootstrap code at the top of `plugin.php` to handle conversion.

Props boonebgorges, dd32 and pento: WordPress Thought Leadership Triumvirate.
Fixes #17817.



git-svn-id: https://develop.svn.wordpress.org/trunk@38582 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-09 00:33:52 +00:00
..
factory Tests: Fix incorrect variable name from [38330]. 2016-08-23 13:48:13 +00:00
bootstrap.php OEmbed: add unit tests. @group external-oembed is not run by default. 2016-08-30 18:54:53 +00:00
class-basic-object.php Tests: Add docblocks for Basic_Object and Basic_Subclass classes. 2016-08-30 14:31:56 +00:00
class-basic-subclass.php Tests: Add docblocks for Basic_Object and Basic_Subclass classes. 2016-08-30 14:31:56 +00:00
exceptions.php
factory.php
functions.php Tests: Use add_filter() when it's available. 2016-09-09 00:33:52 +00:00
install.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:30:48 +00:00
mock-fs.php
mock-image-editor.php
mock-mailer.php
speed-trap-listener.php
spy-rest-server.php
testcase-ajax.php Plugins: Move capability checks further up in wp_ajax_update_plugin() and wp_ajax_delete_plugin(). 2016-07-27 17:42:01 +00:00
testcase-canonical.php Unit Tests: 2016-08-27 08:35:16 +00:00
testcase-rest-api.php
testcase-xmlrpc.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:30:48 +00:00
testcase.php Hooks: Add the new class WP_Hook, and modify hook handling to make use of it. 2016-09-08 03:54:13 +00:00
trac.php
utils.php
wp-profiler.php