Wordpress/tests/phpunit/tests
Sergey Biryukov a22920743b Tests: Replace join() with implode() in do_enclose() tests introduced in [46175], and ensure the arguments passed are in the correct order.
The `implode()` function accepts two parameters, `$glue` and `$pieces`. For historical reasons, these parameters have been accepted in any order, though it was recommended that the documented order of `$glue, $pieces` be used. It is also generally considered best practice to use the canonical function rather than an alias.

Starting in PHP 7.4, specifying the parameters in the reverse order will trigger a deprecation notice with the plan to remove this tolerance in PHP 8.0.

Props jrf.
Fixes #36824. See #47746.

git-svn-id: https://develop.svn.wordpress.org/trunk@46182 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-19 11:45:15 +00:00
..
actions Code is Poetry. 2017-11-30 23:09:33 +00:00
admin Administration: Adjust [45814] to address a backward compatibility issue for plugins passing multiple CSS classes to add_settings_error(). 2019-08-22 00:21:49 +00:00
ajax Tests: Add an xdebug group for tests that require xdebug. 2019-08-19 02:17:50 +00:00
attachment Code is Poetry. 2017-11-30 23:09:33 +00:00
blocks Blocks: Allow for nested the_content calls within do_blocks(). 2019-04-08 06:53:14 +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 Taxonomy: Make sure wp_list_categories() correctly outputs term name of 0. 2018-09-02 22:08:05 +00:00
comment Accessibility: Comments: In comment_form(), remove aria-describedby attribute from the email field if there's no associated description in the comment_notes_before argument. 2019-09-11 01:50:23 +00:00
customize Code Modernisation: Introduce the spread operator in tests/phpunit/*. 2019-09-15 11:03:45 +00:00
date Date/Time: Introduce get_post_datetime() to retrieve post published or modified time as a DateTimeImmutable object instance. 2019-09-17 11:13:25 +00:00
db Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
dependencies Docs: Format multi-line comment in [46180] per the documentation standards. 2019-09-19 11:39:01 +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 Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +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 Coding Standards: Fix WPCS issue in [45990]. 2019-09-04 18:40:13 +00:00
functions Tests: Replace join() with implode() in do_enclose() tests introduced in [46175], and ensure the arguments passed are in the correct order. 2019-09-19 11:45:15 +00:00
general Docs: Fix placement of some duplicate hook references. 2019-09-10 19:22:07 +00:00
hooks Code Modernisation: Introduce the spread operator in tests/phpunit/*. 2019-09-15 11:03:45 +00:00
http Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
image Media: Improve handling of cases where an uploaded image matches exactly a defined intermediate size. In most of these cases the original image has been edited by the user and is "web ready", there is no need for an identical intermediate image. 2019-09-07 01:33:16 +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 Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:36:37 +00:00
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu Menus: Nav menu locations should not be integers. 2019-09-13 17:57:57 +00:00
meta Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
multisite Multisite: improve sites_pre_query and networks_pre_query filters, avoiding db queries. 2019-09-12 22:16:08 +00:00
oembed Tests: Add an xdebug group for tests that require xdebug. 2019-08-19 02:17:50 +00:00
option Administration: Adjust [45814] to address a backward compatibility issue for plugins passing multiple CSS classes to add_settings_error(). 2019-08-22 00:21:49 +00:00
pomo Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
post Posts, Post Types: Allow support arguments to be specified when registering post types. 2019-09-17 19:57:18 +00:00
privacy Privacy: Add descriptions for sections in a personal data export file. 2019-08-18 02:07:00 +00:00
query Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays. 2019-07-15 06:24:08 +00:00
rest-api REST API: Return term resources in "edit" context after PUT or POST request. 2019-09-12 21:28:14 +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 Taxonomy: Fix unique-slug check for terms with parents. 2019-08-26 15:18:40 +00:00
theme Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
url Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:47:29 +00:00
user Users: Make wp_list_authors() unit tests more readable. 2019-08-14 15:35:19 +00:00
widgets Widgets: Add rel="noopener noreferrer" to links with target="_blank" in the Image widget. 2019-04-08 23:22:14 +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 Code is Poetry. 2017-11-30 23:09:33 +00:00
adminbar.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
auth.php Users: Clean user cache in check_password_reset_key() tests. 2019-08-01 19:53:45 +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 Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +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 Code is Poetry. 2017-11-30 23:09:33 +00:00
functions.php Coding Standards: Fix WPCS violation in [45754]. 2019-08-05 18:09:20 +00:00
kses.php Fix for URL sanitization that can lead to cross-site scripting (XSS) attacks. 2019-09-04 17:51:33 +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 Fix (unrelated) test after [46066]. 2019-09-05 22:52:29 +00:00
meta.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
multisite.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
pluggable.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
post.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +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: Accept string path in rest_ensure_request. 2019-09-12 21:46:41 +00:00
rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
shortcode.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +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 Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +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 Users: Adjust [45708] to make sure wp_update_user() does not issue a WP_Error if a single site was previously set up as Multisite and there's still a spam field in the user table. 2019-08-22 01:52:16 +00:00
walker.php Code is Poetry. 2017-11-30 23:09:33 +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