wordpress-develop/tests/phpunit/tests
Sergey Biryukov f92bc1fafc Tests: Correct the @ticket reference in a download_url() test with the Content-Disposition header.
Move the data provider next to the test, for consistency.

Follow-up to [51939], [52734].

Props azouamauriac.
See #55109.

git-svn-id: https://develop.svn.wordpress.org/trunk@52760 602fd350-edb4-49c9-b593-d223f7449a82
2022-02-17 17:38:23 +00:00
..
actions Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
admin Tests: Correct the @ticket reference in a download_url() test with the Content-Disposition header. 2022-02-17 17:38:23 +00:00
ajax Customize: Overlay incompatible banner for block themes. 2021-12-14 15:31:14 +00:00
attachment Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
block-supports Update @wordpress packages 2022-01-04 05:37:25 +00:00
blocks I18n: Standardize the script paths for blocks 2022-02-11 12:12:56 +00:00
bookmark General: Fix 'rel' argument in Tests_Functions_wpListBookmarks test datasets. 2021-12-21 00:10:26 +00:00
canonical Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
category Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
comment Comments: Fix PHP Notice "trying to get property of non-object" in comments_open() and pings_open(). 2021-11-19 20:22:43 +00:00
compat General: Introduce polyfills for str_ends_with() and str_starts_with() added in PHP 8.0. 2021-11-08 14:21:44 +00:00
cron Code Modernization: Add input validation to _set_cron_array(). 2021-08-30 15:19:38 +00:00
customize Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
date Date/Time: Add a unit test for the return type of current_datetime(). 2022-01-21 05:58:13 +00:00
db Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
dependencies Script Loader: Prevent normalizing data URIs in _wp_normalize_relative_css_links(). 2022-02-17 14:45:53 +00:00
editor Tests: Rename classes in phpunit/tests/editor/ per the naming conventions. 2021-08-20 16:11:04 +00:00
error-protection Tests: Rename classes in phpunit/tests/error-protection/ per the naming conventions. 2021-08-21 15:32:53 +00:00
external-http Tests: Add a unit test for the recommended MariaDB version in readme.html. 2021-12-30 16:27:48 +00:00
feed HTTP API: Revert changeset [52244]. 2021-12-06 21:29:00 +00:00
filesystem Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
formatting Formatting: Use is_scalar() in sanitize_key(). 2021-12-14 14:59:33 +00:00
functions Tests: Mock the HTTP request response in download_url() tests. 2021-12-15 19:59:32 +00:00
general Template: Fix "undefined index: 00" when archive month query is empty in wp_title(). 2021-11-11 16:27:44 +00:00
hooks Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
http Tests: Mock the HTTP request response in download_url() tests. 2021-12-15 19:59:32 +00:00
image Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
import Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
includes Build/Test Tools: Switch to some more appropriate assertions. 2022-01-30 19:40:57 +00:00
l10n Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
link Docs: Fix typo in some get_edit_term_link() test DocBlocks. 2021-12-02 05:39:57 +00:00
load Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
media Media: Add support for v1 and v2 gallery block in get_post_galleries(). 2021-11-16 21:23:12 +00:00
menu Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
meta Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
multisite Posts, Post Types: Multisite: Decrement post_count option value when a post is deleted. 2021-11-18 15:10:18 +00:00
oembed Embeds: Fix oEmbed host script enqueueing on block-based themes. 2022-01-04 15:22:40 +00:00
option Docs: Correct the format of some comments per the documentation standards. 2021-12-10 20:28:27 +00:00
pomo Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
post Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
privacy Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
query Tests: Avoid duplicate queries in some WP_Query tests. 2022-01-14 17:50:52 +00:00
rest-api REST API: Add unit tests for the 404 template slug handler. 2022-01-04 14:23:56 +00:00
rewrite Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
sitemaps Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
taxonomy Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
term Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
theme Tests: Rename the test file and class for wp_get_global_stylesheet() tests. 2022-02-05 13:19:53 +00:00
url Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
user Docs: Further update the send_retrieve_password_email filter documentation for consistency. 2022-01-19 13:16:44 +00:00
widgets HTTP API: Revert changeset [52244]. 2021-12-06 21:29:00 +00:00
wp Code Modernization: Check the return type of parse_url() in WP::parse_request(). 2021-08-16 20:16:13 +00:00
xmlrpc Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
actions.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
adminbar.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
auth.php Users: Prevent infinite loop when using capability checks during determine_current_user on multisite. 2021-11-15 01:08:35 +00:00
avatar.php Tests: Replace assertRegExp() with assertMatchesRegularExpression(). 2021-08-06 21:52:06 +00:00
basic.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
block-template-utils.php Site Editor: Update the block template descriptions. 2021-12-07 12:10:36 +00:00
block-template.php Query: Check if the theme supports block-templates before calling locate_block_template() in get_query_template(). 2022-02-09 13:20:49 +00:00
cache.php Cache API: Reorder object cache functions and methods for consistency. 2022-02-11 18:47:38 +00:00
canonical.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
category.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
comment-submission.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
comment.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
cron.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
db.php WPDB: Call wp_load_translations_early() in wpdb::query() and wpdb::process_fields(). 2021-11-19 18:58:14 +00:00
dbdelta.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
dependencies.php Script Loader: Allow for wp_register_script() to be called after wp_enqueue_script(). 2021-12-07 17:44:46 +00:00
file.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
filters.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
functions.php HTTP API: Revert changeset [52244]. 2021-12-06 21:29:00 +00:00
https-detection.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
https-migration.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
kses.php KSES: Use the polyfilled PHP 8 string functions in _wp_kses_allow_pdf_objects(): 2021-12-06 11:06:40 +00:00
l10n.php Tests: Use a simpler approach to test the output in some tests. 2021-11-27 16:16:15 +00:00
link.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
locale.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
mail.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
media.php Media: Add support for v1 and v2 gallery block in get_post_galleries(). 2021-11-16 21:23:12 +00:00
meta.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
multisite.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
pluggable.php Cache API: Reorder object cache functions and methods for consistency. 2022-02-11 18:47:38 +00:00
post.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
query.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
rest-api.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
rewrite.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
robots.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
shortcode.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
site-health.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
taxonomy.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
template.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
term.php Build/Test Tools: Switch to some more appropriate assertions. 2022-01-30 19:40:57 +00:00
theme.php Themes: Make block themes support HTML5 by default. 2022-01-04 18:38:52 +00:00
upload.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
url.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
user.php Users: Return a WP_Error from wp_insert_user() if the user_url field is too long. 2022-01-29 14:23:59 +00:00
walker.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
widgets.php Tests: Use a simpler approach to test the output in some tests. 2021-11-27 16:16:15 +00:00
wp.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00