wordpress-develop/tests/phpunit/tests
Sergey Biryukov 984680b54e Tests: Correct the expected result for wp_ajax_replyto_comment() test with a draft post.
The "Error:" prefix was previously removed and accidentally re-added with `@covers` tags.

Follow-up to [53337], [53561].

See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@53565 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-23 21:36:47 +00:00
..
actions Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
admin Editor: Universalize functions for checking block editor status. 2022-06-23 18:46:18 +00:00
ajax Tests: Correct the expected result for wp_ajax_replyto_comment() test with a draft post. 2022-06-23 21:36:47 +00:00
attachment Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
block-supports Editor: Fix styles for nested elements (link color) 2022-04-25 16:35:16 +00:00
blocks Build/Test Tools: Fix comments odd/even instabilities (test leaks). 2022-05-23 11:54:28 +00:00
bookmark General: Fix 'rel' argument in Tests_Functions_wpListBookmarks test datasets. 2021-12-21 00:10:26 +00:00
canonical Canonical: Check if the URL scheme exists in strip_fragment_from_url(). 2022-03-09 15:06:09 +00:00
category Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
comment Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +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 Build/Test Tools: Add missing @covers tags and fix the docs for the Cron test group. 2022-06-23 20:41:22 +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: Fix i18n edge case breaking dependencies. 2022-05-07 02:51:54 +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 General: Bump the recommended MariaDB version in readme.html. 2022-05-23 14:20:47 +00:00
feed Build/Test Tools: Typo correction in rss2 unit tests. 2022-04-21 23:11:10 +00:00
filesystem Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
formatting Build/Test Tools: Fix erroneous file name, from convertInvalidEntries.php to convertInvalidEntities.php. 2022-06-23 20:34:26 +00:00
functions Code Modernization: Replace phpversion() function calls with PHP_VERSION constant. 2022-05-20 17:36:23 +00:00
general Feeds: Remove comment feed HTML headers when empty. 2022-04-11 05:01:04 +00:00
hooks Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
http Tests: Use a consistent URL in HTTP response cookie tests. 2022-06-12 15:16:09 +00:00
image Docs: Use third-person singular verbs for function descriptions in Tests_Image_Functions, per the documentation standards. 2022-06-20 22:24:03 +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 General: Replace all esc_url_raw() calls in core with sanitize_url(). 2022-06-01 18:12:25 +00:00
load Code Modernization: Replace phpversion() function calls with PHP_VERSION constant. 2022-05-20 17:36:23 +00:00
media Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +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 Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
multisite Networks and Sites: Improve cache key generation in WP_Network_Query class. 2022-04-07 17:57:59 +00:00
oembed Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:23:32 +00:00
option Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
pluggable Tests: Correct an assertion in wp_rand() tests. 2022-06-08 13:17:27 +00:00
pomo Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
post Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
privacy Tests: Require the zip PHP extension in block templates export file test. 2022-06-01 14:16:39 +00:00
query Query: Check if $wp_query is set in query loop functions. 2022-05-22 15:15:47 +00:00
rest-api Tests: Re-enable failing REST API test for update_post_parent_caches(). 2022-06-15 19:32:25 +00:00
rewrite Posts, Post Types: Add caching to _find_post_by_old_slug and _find_post_by_old_date functions. 2022-06-21 13:32:48 +00:00
sitemaps Tests: Improve the test for sticky posts not being moved to the front in sitemaps. 2022-06-22 16:50:14 +00:00
taxonomy Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
term Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
theme Themes: Accept valid block themes. 2022-05-20 00:47:45 +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 Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
webfonts Tests: Ignore EOL differences in Webfonts API tests. 2022-04-30 11:33:30 +00:00
widgets HTTP API: Revert changeset [52244]. 2021-12-06 21:29:00 +00:00
wp Docs: Add a @since note for WP::parse_request() about the new return value. 2022-03-02 15:38:27 +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 Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +00:00
basic.php Tests: Improve the logic of the SECURITY.md test to check all supported versions. 2022-05-06 11:09:54 +00:00
block-template-utils.php Tests: Require the zip PHP extension in block templates export file test. 2022-06-01 14:16:39 +00:00
block-template.php Site Editor: Resolve homepage template on server-side 2022-04-07 13:33:03 +00:00
cache.php Cache API: Reorder object cache functions and methods for consistency. 2022-02-11 18:47:38 +00:00
canonical.php Canonical: Include all public status in 404 redirects. 2022-04-01 03:23:07 +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: Add missing @covers tags and fix the docs for the Cron test group. 2022-06-23 20:41:22 +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 Media: Relocate wp_filesize() function for use in frontend and backend. 2022-03-14 16:30:35 +00:00
filters.php Tests: Remove some unused variables in phpunit/tests/filters.php. 2022-03-23 14:48:28 +00:00
functions.php Tests: Add some test cases for path_join() with Windows paths. 2022-06-03 15:05:28 +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 Docs: Remove @return void from various DocBlocks. 2022-05-02 13:11:07 +00:00
l10n.php I18N: Correct and improve inline docs and tests for functionality related to nooped plurals. 2022-06-20 22:55:52 +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 Tests: Rename the $success variable to $result in the wp_mail() test for an empty home URL. 2022-02-25 14:08:53 +00:00
media.php Code Modernization: Remove dynamic properties in Tests_Media. 2022-06-23 15:01:19 +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 Tests: Move the tests for individual pluggable functions into their own directory. 2022-06-07 14:44:00 +00:00
post.php Editor: Universalize functions for checking block editor status. 2022-06-23 18:46:18 +00:00
query.php Query: Some documentation and test improvements for update_post_author_caches(): 2022-06-10 15:15:07 +00:00
rest-api.php REST API: Respect _fields query arg in preloaded requests 2022-04-19 14:38:16 +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 Tests: Move get_inline_data() tests to a more appropriate place. 2022-05-09 17:56:36 +00:00
template.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
term.php Tests: Include special characters in term names for wp_set_term_objects(). 2022-03-16 03:04:40 +00:00
theme.php Tests: Improve the logic of the SECURITY.md test to check all supported versions. 2022-05-06 11:09:54 +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: Fail gracefully when checking mapped capabilities without providing the required object ID. 2022-05-17 18:59:24 +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