Wordpress/tests/phpunit/tests
Sergey Biryukov 4e78b0acd9 Themes: Allow template loading functions to pass additional arguments to the template via the $args parameter.
This affects:
* `get_header()`
* `get_footer()`
* `get_sidebar()`
* `get_template_part()`
* `locate_template()`
* `load_template()`

Note: `get_search_form()` already passes additional arguments to the template as of [44956].

Props enrico.sorcinelli, sc0ttkclark, scribu, nacin, wonderboymusic, GeertDD, beatpanda, amaschas, mintindeed, ysalame, caiocrcosta, bigdawggi, julianm, eddiemoya, shawnz, sayedwp, shamai, mboynes, mihai2u, guidobras, Mte90, apedog, stuffradio, overclokk, johnbillion, joyously, afercia, audrasjb, justlevine, SergeyBiryukov.
See #21676.

git-svn-id: https://develop.svn.wordpress.org/trunk@48370 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-07 11:00:21 +00:00
..
actions Code is Poetry. 2017-11-30 23:09:33 +00:00
admin Administration: Correct and simplify the logic for asc and desc arguments in WP_List_Table::get_sortable_columns(). 2020-06-25 11:33:23 +00:00
ajax Tests: Remove unnecessary tearDown() method in Tests_Ajax_EditComment. 2020-06-30 00:58:07 +00:00
attachment Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
blocks Editor: Support filtering arguments in block type registration 2020-07-01 13:08:11 +00:00
bookmark Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
canonical Canonical: Move trailing slash handling for robots.txt and sitemaps to a single condition. 2020-06-25 11:39:23 +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 Comments: Ensure the proper comment count and pages for unapproved comments. 2020-06-23 05:22:39 +00:00
customize Docs: Remove unnecessary variables names from @return tags. 2020-06-19 22:53:54 +00:00
date Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
db Database: Introduce wpdb::db_server_info() to retrieve full MySQL server information string as supplied by mysqli_get_server_info(). 2020-03-12 15:53:01 +00:00
dependencies Docs: Fix typos in comments in tests/dependencies/jquery.php. 2020-07-05 20:27:52 +00:00
editor Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
error-protection Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
external-http Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
feed Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
filesystem Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
formatting Sitemaps: Add XML sitemaps functionality to WordPress. 2020-06-17 15:22:49 +00:00
functions Docs: Remove @return void from some tests, per the documentation standards. 2020-06-30 00:41:57 +00:00
general Themes: Allow template loading functions to pass additional arguments to the template via the $args parameter. 2020-07-07 11:00:21 +00:00
hooks Code Modernisation: Introduce the spread operator in tests/phpunit/*. 2019-09-15 11:03:45 +00:00
http Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
image Tests: Temporarily skip PDF tests if they fail due to ImageMagick permission errors. 2020-07-06 18:20:32 +00:00
import Comments: Ensure all elements in the array returned by get_comment_count() are integers. 2020-03-28 20:42:31 +00:00
includes Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
l10n Tests: Change a few remaining include_once statements to require_once, for consistency. 2020-02-06 21:40:05 +00:00
link Canonical: Redirect paged requests for non-paginated posts to the post permalink. 2020-04-30 12:03:11 +00:00
load
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu Menus: Allow empty taxonomy terms to be surfaced when searching for items. 2020-05-02 22:34:50 +00:00
meta Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
multisite Multisite: Delete the signup entry when a user is deleted from the database. 2020-07-05 11:19:35 +00:00
oembed Embeds: Ensure that classic embed support works in the block editor. 2020-06-23 06:06:11 +00:00
option Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
pomo Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
post Query: Make sure the found_posts property of WP_Query is always an integer, to match the documented type. 2020-07-05 21:32:26 +00:00
privacy Privacy: Simplify the logic for updating the meta values for personal data export requests from absolute to relative paths. 2020-07-06 00:32:15 +00:00
query Posts, Post Types: Simplify test_setup_postdata_loop(). 2020-06-21 10:28:52 +00:00
rest-api Docs: Miscellaneous DocBlock corrections. 2020-07-07 09:28:19 +00:00
rewrite Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
sitemaps Sitemaps: Add XML sitemaps functionality to WordPress. 2020-06-17 15:22:49 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term Code Standards: Clean up whitespace on the end of a file. 2020-05-29 23:34:00 +00:00
theme REST API: Add additional fields to the themes controller. 2020-06-07 06:44:08 +00:00
url Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:47:29 +00:00
user Docs: Remove unnecessary variables names from @return tags. 2020-06-19 22:53:54 +00:00
widgets General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:24:34 +00:00
xmlrpc Tests: Adjust XML-RPC unit tests for [47160]. 2020-02-02 04:07:50 +00:00
actions.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
adminbar.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
auth.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
avatar.php Media: Enable lazy-loading of images by automatically adding the new loading="lazy" attribute to image tags on the front-end. 2020-04-08 00:53:18 +00:00
basic.php Tests: Add a unit test to ensure the "Supported Versions" section of GitHub Security Policy always includes the latest stable branch. 2020-03-02 01:11:29 +00:00
cache.php Coding Standards: Cleans up some PHPCS issues introduced in [47938]. 2020-06-09 22:40:50 +00:00
canonical.php Canonical: Add the ability to disable redirect_guess_404_permalink(). 2020-06-01 18:47:41 +00:00
category.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
comment-submission.php Comments: Ensure that inserting a comment with an empty type results in correct comment type. 2020-04-26 13:42:03 +00:00
comment.php Comments: Make wp_update_comment() return false instead of 0 for an invalid comment or post ID. 2020-06-30 14:11:00 +00:00
compat.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
cron.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
db.php Tests: Remove ja_JP locale from Tests_DB::test_locale_floats(). 2020-07-05 12:50:47 +00:00
dbdelta.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
dependencies.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
file.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
filters.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
functions.php General: Trim the input data in maybe_unserialize(), for consistency with is_serialized(). 2020-03-13 21:12:01 +00:00
kses.php Docs: Remove @return void from some tests, per the documentation standards. 2020-06-30 00:41:57 +00:00
l10n.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
link.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
locale.php I18N: Following [45688], remove test for removed method. 2019-07-27 14:29:28 +00:00
mail.php External Libraries: Upgrade PHPMailer to version 6.1.6. 2020-06-12 15:45:30 +00:00
media.php Coding Standards: Fix WPCS issues in tests/media.php. 2020-07-06 09:17:15 +00:00
meta.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
multisite.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
pluggable.php Cache API: Introduce wp_cache_get_multi(). 2020-06-09 19:45:27 +00:00
post.php Tests: Remove unnecessary use of wpdb_exposed_methods_for_testing in test_utf8mb3_post_saves_with_emoji(). 2020-03-05 11:53:34 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
rest-api.php Docs: Miscellaneous DocBlock corrections. 2020-07-07 09:28:19 +00:00
rewrite.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
shortcode.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
site-health.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
taxonomy.php Taxonomy: Add support for default terms for custom taxonomies. 2020-07-07 00:53:41 +00:00
template.php PHPCS: Remove extra spaces added in [44966]. 2019-03-21 20:19:16 +00:00
term.php Posts, Post Types: Introduce default_category_post_types filter. 2020-06-14 21:40:10 +00:00
theme.php Docs: Remove extra spaces from @ticket tag in unit tests. 2020-06-27 12:01:30 +00:00
upload.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
url.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
user.php Docs: Remove unnecessary variables names from @return tags. 2020-06-19 22:53:54 +00:00
walker.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
widgets.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:24:34 +00:00
wp.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00