Wordpress/tests/phpunit/tests
Sergey Biryukov 6ce8175456 Date/Time: Remove mysql2date() usage in get_feed_build_date() to ensure the output includes correct timezone offset.
With the changes in [45908], `mysql2date()` works correctly for all local time inputs, but should not be used for UTC time inputs.

Add a unit test.

Props Rarst, lisota.
Fixes #48675.

git-svn-id: https://develop.svn.wordpress.org/trunk@46756 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-21 13:16:50 +00:00
..
actions Code is Poetry. 2017-11-30 23:09:33 +00:00
admin Test: Don't skip the tests intended for single site when running on Multisite, add them to the ms-excluded group instead. 2019-11-09 03:44:51 +00:00
ajax Tests: Don't skip the tests intended for Multisite when running on single site, add them to the ms-required group instead. 2019-11-10 01:53:17 +00:00
attachment Code is Poetry. 2017-11-30 23:09:33 +00:00
blocks Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
bookmark General: Fix existing coding standard violations in bookmark tests, as outlined in [44546]. 2019-01-10 21:16:49 +00:00
canonical Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
category Menus: In Walker_Nav_Menu, Walker_Category, and Walker_Page, properly output link attributes having a legitimate "empty" value, for example an HTML data attribute with a value of zero (0). 2019-10-06 15:04:18 +00:00
comment Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
customize Customize: If the return URL for Close button is a page added to the Appearance menu by a deactivated theme, fall back to the Themes screen. 2019-11-20 18:47:08 +00:00
date Date/Time: Remove mysql2date() usage in get_feed_build_date() to ensure the output includes correct timezone offset. 2019-11-21 13:16:50 +00:00
db Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
dependencies Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
editor Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
error-protection Bootstrap/Load: Allow more than one recovery link to be valid at a time. 2019-04-16 05:08:16 +00:00
external-http Tests: Skip test_readme() if the HTTP request to secure.php.net or dev.mysql.com failed on timeout. 2019-11-09 03:36:19 +00:00
feed Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
filesystem Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
formatting Build/Test Tools: Adjust the test for wp_redirect() status codes added in [46641] per the documentation and coding standards. 2019-11-04 12:57:17 +00:00
functions Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
general Customize: Remove the deprecated -precomposed suffix from apple-touch-icon link in wp_site_icon(). 2019-11-11 09:58:17 +00:00
hooks Code Modernisation: Introduce the spread operator in tests/phpunit/*. 2019-09-15 11:03:45 +00:00
http Tests: Skip test_readme() if the HTTP request to secure.php.net or dev.mysql.com failed on timeout. 2019-11-09 03:36:19 +00:00
image Media: Update fallback previews to support _wp_make_subsizes() 2019-10-11 07:52:12 +00:00
import Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
includes Bootstrap/Load: After [45016], make sure wp_die() does not cause _doing_it_wrong() notices if called before $wp_query global is set. 2019-04-15 23:48:11 +00:00
l10n I18N: Add support for custom WP_PLUGIN_URL in load_script_textdomain(). 2019-07-27 12:43:56 +00:00
link Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
load
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu Tests: Use a consistent group for nav menu tests. 2019-10-06 15:12:42 +00:00
meta Query: Expand the list of operators available to compare_key in WP_Meta_Query. 2019-09-19 15:02:20 +00:00
multisite Coding Standards: Remove inline assignments and extra whitespace in tests/multisite/network.php. 2019-09-29 12:21:29 +00:00
oembed Tests: Add an xdebug group for tests that require xdebug. 2019-08-19 02:17:50 +00:00
option Themes: In get_theme_mod(), only run the sprintf() replacement on the default value if there's a string format pattern found in the value. 2019-10-05 00:53:39 +00:00
pomo Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
post Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
privacy Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
query Query: Remove the static query property. 2019-10-14 15:18:49 +00:00
rest-api Docs: In various @return tags, list the expected type first, instead of WP_Error. 2019-11-11 02:41:15 +00:00
rewrite Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term Tests: Use a consistent group for nav menu tests. 2019-10-06 15:12:42 +00:00
theme Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
url Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:47:29 +00:00
user Users: Make sure wp_logout() clears current user, so that a subsequent call to is_user_logged_in() works as expected. 2019-10-12 03:08:56 +00:00
widgets Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
xmlrpc Date/Time: Update XML-RPC tests for invalid date input to account for a more consistent mysql2date() error handling in [45908]. 2019-08-29 16:43:28 +00:00
actions.php Tests: Fix a typo in an inline comment. 2019-11-11 18:48:06 +00:00
adminbar.php Toolbar: Un-deprecate the WP_Admin_Bar::add_menu() method. 2019-11-08 13:17:35 +00:00
auth.php Login and Registration: Simplify the test for wp_signon() added in [46640]. 2019-11-04 15:04:41 +00:00
avatar.php Coding Standards: Fix and whitelist variable names. 2019-01-12 06:05:55 +00:00
basic.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
canonical.php Canonical: Ensure redirect query keys are URL encoded. 2019-04-08 01:09:01 +00:00
category.php Code is Poetry. 2017-11-30 23:09:33 +00:00
comment-submission.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
comment.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
compat.php Code Modernization: Pass an appropriate error level to trigger_error() in _doing_it_wrong() and related functions: 2019-11-01 00:39:04 +00:00
cron.php Cron: Ensure identical single events aren't scheduled less than 10min apart. 2019-03-16 06:41:23 +00:00
db.php Code Modernisation: Replace call_user_func_array() in tests/phpunit/tests/db.php with dynamic function calls. 2019-09-15 11:55:42 +00:00
dbdelta.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
dependencies.php Code is Poetry. 2017-11-30 23:09:33 +00:00
file.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
filters.php Docs: Use 3-digit, x.x.x style semantic versioning for $version argument in do_action_deprecated() and apply_filters_deprecated() calls. 2019-11-09 13:55:43 +00:00
functions.php Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
kses.php KSES: Add support for modern layout techniques in style attribute. 2019-09-22 22:16:19 +00:00
l10n.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
link.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
locale.php I18N: Following [45688], remove test for removed method. 2019-07-27 14:29:28 +00:00
mail.php Mail: Add a unit test to make sure wp_mail() does not duplicate the MIME-Version header added automatically by PHPMailer. 2019-09-14 21:34:51 +00:00
media.php Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
meta.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
multisite.php Fix PHP coding standards after [46251]. 2019-09-23 18:11:15 +00:00
pluggable.php Build/Test Tools: Adjust the test for wp_redirect() status codes added in [46641] per the documentation and coding standards. 2019-11-04 12:57:17 +00:00
post.php Pings/Trackbacks: Remove a failing test that won't pass as long as WP_IMPORTING gets set during tests. 2019-10-07 22:17:22 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
rest-api.php REST API: Fix error in _fields filtering logic where only one of several requested sibling properties would be included. 2019-10-10 17:16:44 +00:00
rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
shortcode.php Shortcodes: Revert [46369] for now to allow more time to investigate and prepare for backward compatibility changes. 2019-10-15 19:34:31 +00:00
site-health.php Site Health Check: New tests file missed in [45801]. 2019-08-15 00:36:38 +00:00
taxonomy.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
template.php PHPCS: Remove extra spaces added in [44966]. 2019-03-21 20:19:16 +00:00
term.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
theme.php Bundled Themes: Update copyright year in readme.txt. 2019-11-12 17:34:05 +00:00
upload.php Code is Poetry. 2017-11-30 23:09:33 +00:00
url.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
user.php Test: Don't skip the tests intended for single site when running on Multisite, add them to the ms-excluded group instead. 2019-11-09 03:44:51 +00:00
walker.php Tests: Use a consistent group for nav menu tests. 2019-10-06 15:12:42 +00:00
widgets.php Code Modernisation: Replace call_user_func_array() in wp-admin/includes/widgets.php and associated unit tests with a direct function call. 2019-09-15 11:40:08 +00:00
wp.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00