Wordpress/tests/phpunit/tests
Peter Wilson e73af26e92 Cron API: Return meaningful values from cron functions.
Return values added to Cron API functions to indicate outcome:

* `wp_schedule_single_event()`, `wp_schedule_event()`, `wp_reschedule_event()` and `wp_unschedule_event()`: boolean indicating success or failure,
* `wp_clear_scheduled_hook()`: integer indicating number of jobs cleared (zero or more), `false` if one or more jobs fail to clear,
* `wp_unschedule_hook()`: integer indicating number of jobs cleared (zero or more), `false` if the jobs fail to clear,
* `spawn_cron()`: boolean indicating whether job spawned,
* `wp_cron()`: integer indicating number of jobs spawned (zero or more), `false` if one or more jobs fail to spawned,
* `_set_cron_array()`: boolean outcome of `update_option()`.

Props evansolomon, jrf, peterwilsoncc, pento for code review.
Fixes #21072.



git-svn-id: https://develop.svn.wordpress.org/trunk@43050 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 02:04:25 +00:00
..
actions Code is Poetry. 2017-11-30 23:09:33 +00:00
admin Privacy: add helper function for anonymizing data in a standardized way. 2018-04-12 21:19:24 +00:00
ajax Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite. 2018-03-20 22:34:11 +00:00
attachment Code is Poetry. 2017-11-30 23:09:33 +00:00
bookmark Code is Poetry. 2017-11-30 23:09:33 +00:00
canonical Code is Poetry. 2017-11-30 23:09:33 +00:00
category category_description() should be taxonomy-agnostic. 2017-12-04 21:48:24 +00:00
comment Code is Poetry. 2017-11-30 23:09:33 +00:00
customize Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite. 2018-03-20 22:34:11 +00:00
date Code is Poetry. 2017-11-30 23:09:33 +00:00
db Code is Poetry. 2017-11-30 23:09:33 +00:00
dependencies External Libraries: Test for MEjs files in src instead of build. 2018-02-28 00:25:08 +00:00
editor Code is Poetry. 2017-11-30 23:09:33 +00:00
external-http Embeds: Remove the external oEmbed tests for YouTube. 2017-10-03 16:51:25 +00:00
feed Code is Poetry. 2017-11-30 23:09:33 +00:00
filesystem Code is Poetry. 2017-11-30 23:09:33 +00:00
formatting Add pre-save content filter to make target=_blank always secure. 2018-03-02 14:41:04 +00:00
functions Privacy: add helper function for anonymizing data in a standardized way. 2018-04-12 21:19:24 +00:00
general General: Introduce WP_Error::has_errors() method and use it where appropriate. 2018-02-27 02:30:46 +00:00
hooks Code is Poetry. 2017-11-30 23:09:33 +00:00
http Code is Poetry. 2017-11-30 23:09:33 +00:00
image Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite. 2018-03-20 22:34:11 +00:00
import Code is Poetry. 2017-11-30 23:09:33 +00:00
includes Code is Poetry. 2017-11-30 23:09:33 +00:00
l10n Code is Poetry. 2017-11-30 23:09:33 +00:00
link Privacy: Add template tags for building link to privacy policy page. 2018-04-25 15:54:29 +00:00
load Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:36:37 +00:00
media Code is Poetry. 2017-11-30 23:09:33 +00:00
menu Tests: Correct erroneous @covers and @use tags. 2018-02-01 16:08:04 +00:00
meta Code is Poetry. 2017-11-30 23:09:33 +00:00
multisite Multisite: Add meta query functionality to WP_Site_Query. 2018-04-27 11:40:35 +00:00
oembed Tests: Replace use of $this->server with rest_get_server() for better memory recycling. 2018-02-21 16:24:30 +00:00
option Multisite: Add missing group annotations to tests included in [42833]. 2018-03-13 17:56:05 +00:00
pomo Code is Poetry. 2017-11-30 23:09:33 +00:00
post Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite. 2018-03-20 22:34:11 +00:00
query Allow LIKE queries against the 'key' value in meta queries. 2018-03-01 04:02:41 +00:00
rest-api REST API: Include viewable attribute on Post Type resource for edit context 2018-04-27 03:05:40 +00:00
rewrite Tests: Improve the old date redirect tests. 2018-01-24 06:38:58 +00:00
taxonomy Code is Poetry. 2017-11-30 23:09:33 +00:00
term Taxonomy: Ensure that invalid term objects are discarded in WP_Term_Query. 2018-04-30 21:07:16 +00:00
theme Themes: Revert [42788] as it breaks a lot of things. 2018-03-09 16:59:57 +00:00
url Privacy: Add template tags for building link to privacy policy page. 2018-04-25 15:54:29 +00:00
user General: Introduce dashboard widget to inform administrators about outdated PHP versions. 2018-03-12 16:42:11 +00:00
widgets Widgets: Fix Text widget unit test which broke due to global scope not being cleaned. 2018-01-30 00:33:03 +00:00
xmlrpc Code is Poetry. 2017-11-30 23:09:33 +00:00
actions.php Code is Poetry. 2017-11-30 23:09:33 +00:00
adminbar.php Code is Poetry. 2017-11-30 23:09:33 +00:00
auth.php Code is Poetry. 2017-11-30 23:09:33 +00:00
avatar.php Code is Poetry. 2017-11-30 23:09:33 +00:00
basic.php Build/Test tools: Remove unnecessary PHP functionality tests from the test suite. 2017-12-09 23:08:24 +00:00
cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
canonical.php Code is Poetry. 2017-11-30 23:09:33 +00:00
category.php Code is Poetry. 2017-11-30 23:09:33 +00:00
comment-submission.php Code is Poetry. 2017-11-30 23:09:33 +00:00
comment.php Privacy: fix unit tests after [43012]. 2018-04-28 12:10:13 +00:00
compat.php General: Introduce a polyfill for is_iterable() function added in PHP 7.1. 2018-04-30 04:14:30 +00:00
cron.php Cron API: Return meaningful values from cron functions. 2018-05-01 02:04:25 +00:00
db.php Code is Poetry. 2017-11-30 23:09:33 +00:00
dbdelta.php Code is Poetry. 2017-11-30 23:09:33 +00:00
dependencies.php Code is Poetry. 2017-11-30 23:09:33 +00:00
file.php Code is Poetry. 2017-11-30 23:09:33 +00:00
filters.php Code is Poetry. 2017-11-30 23:09:33 +00:00
functions.php Media: Add flac to the list of allowed file types. 2018-01-15 22:16:33 +00:00
kses.php Formatting: Permit use of text-transform in safecss_filter_attr(). 2018-03-27 00:53:20 +00:00
l10n.php Code is Poetry. 2017-11-30 23:09:33 +00:00
link.php Code is Poetry. 2017-11-30 23:09:33 +00:00
locale.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mail.php Code is Poetry. 2017-11-30 23:09:33 +00:00
media.php Revert max-width styles on caption shortcodes. 2018-03-16 20:06:41 +00:00
meta.php Code is Poetry. 2017-11-30 23:09:33 +00:00
multisite.php Code is Poetry. 2017-11-30 23:09:33 +00:00
pluggable.php Canonical: Add $x_redirect_by parameter to wp_safe_redirect(). 2018-02-04 16:04:10 +00:00
post.php Code is Poetry. 2017-11-30 23:09:33 +00:00
query.php Code is Poetry. 2017-11-30 23:09:33 +00:00
rest-api.php Code is Poetry. 2017-11-30 23:09:33 +00:00
rewrite.php Code is Poetry. 2017-11-30 23:09:33 +00:00
shortcode.php Revert max-width styles on caption shortcodes. 2018-03-16 20:06:41 +00:00
taxonomy.php Build/Test tools: Switch to PHPUnit's expectOutputString() method instead of manually using output buffers for output assertions. 2017-12-10 00:30:32 +00:00
template.php Code is Poetry. 2017-11-30 23:09:33 +00:00
term.php Code is Poetry. 2017-11-30 23:09:33 +00:00
theme.php Tests: Correct erroneous @covers and @use tags. 2018-02-01 16:08:04 +00:00
upload.php Code is Poetry. 2017-11-30 23:09:33 +00:00
url.php Code is Poetry. 2017-11-30 23:09:33 +00:00
user.php Users: Use promote_users for role updates in edit_user(). 2018-03-19 20:28:28 +00:00
walker.php Code is Poetry. 2017-11-30 23:09:33 +00:00
widgets.php Tests: Correct erroneous @covers and @use tags. 2018-02-01 16:08:04 +00:00
wp.php Query: Add a WP::remove_query_var() helper function. 2016-01-05 20:56:10 +00:00