wordpress-develop/tests/phpunit/tests
Timothy Jacobs 0187bbdd7e Site Health, App Passwords: Test if the Authorization header is populated correctly.
App Passwords rely on the Authorization header to transport the Basic Auth credentials. For Apache web servers, WordPress automatically includes a RewriteRule to populate the value for servers running in CGI or FastCGI that wouldn't ordinarily populate the value. 

This tests if the header is being filled with the expected values. For Apache users, we direct the user to visit the Permalinks settings to flush their permalinks. For all other users, we direct them to a help document on developer.wordpress.org.

Props Clorith, marybaum, TimothyBlynJacobs.
Fixes #51638.


git-svn-id: https://develop.svn.wordpress.org/trunk@49334 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 18:30:03 +00:00
..
actions Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
admin I18N: Introduce WP_Textdomain_Registry to store text domains and their language directory paths. 2020-10-20 16:03:58 +00:00
ajax Tests: Require imagejpeg() function in Ajax media editing tests. 2020-09-29 14:14:28 +00:00
attachment Coding Standards: Give the $id variable in slashed data tests a more descriptive name. 2020-09-19 10:53:15 +00:00
blocks Block Editor: Expose api_version in the block type and the REST endpoint. 2020-10-20 07:52:06 +00:00
bookmark Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
canonical Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +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: Add a filter for top level comments query arguments in comments_template(). 2020-10-20 20:09:39 +00:00
customize Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:25:10 +00:00
date Tests: Add a polyfill for assertEqualsWithDelta() to WP_UnitTestCase and use it where appropriate. 2020-09-07 03:12:17 +00:00
db Tests: Use consistent trailing punctuation in markTestSkipped() messages. 2020-09-21 14:05:23 +00:00
dependencies Update jQuery step two: 2020-10-07 16:31:53 +00:00
editor Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
error-protection Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
external-http Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
feed Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
filesystem Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
formatting Emoji: Update Twemoji to version 13.0.1. 2020-10-20 16:53:43 +00:00
functions Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
general General: Introduce the ability to merge multiple WP_Error objects into one another, and to store more than one item of data for an error. 2020-10-09 22:20:50 +00:00
hooks Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
http Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
image Media: Support Stream Wrappers In WP_Image_Editor_Imagick 2020-10-20 14:35:10 +00:00
import Tests: Use consistent trailing punctuation in fail() messages. 2020-09-22 12:32:39 +00:00
includes Tests: Consistently use the expectException() method instead of the older @expectedException annotation. 2020-09-18 13:22:22 +00:00
l10n I18N: Introduce WP_Textdomain_Registry to store text domains and their language directory paths. 2020-10-20 16:03:58 +00:00
link Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +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 General: Remove noreferrer from wp_targeted_link_rel() and other uses. 2020-10-19 23:37:53 +00:00
meta Tests: Speed up slashed data tests by reusing some more shared fixtures. 2020-09-19 11:11:00 +00:00
multisite Multisite: More specific caching for get_dirsize. 2020-10-19 21:49:58 +00:00
oembed Tests: Update third-party video URLs in unit tests with more permanent videos. 2020-10-10 01:37:18 +00:00
option General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
pomo Tests: Simplify PluralFormsTest::test_exceptions(). 2020-09-18 14:11:11 +00:00
post Tests: Rename some files and classes in phpunit/tests/post/ per the naming conventions. 2020-10-27 16:07:21 +00:00
privacy General: Remove noreferrer from wp_targeted_link_rel() and other uses. 2020-10-19 23:37:53 +00:00
query Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
rest-api Site Health, App Passwords: Test if the Authorization header is populated correctly. 2020-10-27 18:30:03 +00:00
rewrite Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
sitemaps Tests: Correct the message in a sitemaps test for getting a URL list for a custom taxonomy that is not publicly queryable. 2020-10-14 00:25:43 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term Tests: Correct newly introduced @covers tags. 2020-10-25 00:31:12 +00:00
theme I18N: Introduce WP_Textdomain_Registry to store text domains and their language directory paths. 2020-10-20 16:03:58 +00:00
url Tests: Correct a number of malformed @covers tags. 2020-08-23 17:23:52 +00:00
user Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
widgets General: Remove noreferrer from wp_targeted_link_rel() and other uses. 2020-10-19 23:37:53 +00:00
xmlrpc REST API, XML-RPC: Synchronise empty comment content checks. 2020-10-24 22:44:38 +00:00
actions.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
adminbar.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
auth.php REST API: Introduce Application Passwords for API authentication. 2020-10-08 22:12:02 +00:00
avatar.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
basic.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
cache.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
canonical.php Canonical: Support multiple post types in redirect_guess_404_permalink(). 2020-10-18 23:21:03 +00:00
category.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
comment-submission.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
comment.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
compat.php Tests: Consistently use the expectException() method instead of the older @expectedException annotation. 2020-09-18 13:22:22 +00:00
cron.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
db.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:25:10 +00:00
dbdelta.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
dependencies.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
file.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
filters.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
functions.php REST API: Support a broader range of JSON media types. 2020-10-27 16:42:38 +00:00
kses.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
l10n.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
link.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
locale.php Tests: Fix the failure in test_get_weekday_undefined_index() on PHP 8. 2020-09-18 10:56:27 +00:00
mail.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
media.php Media: Introduce a filter for wp_get_attachment_image() HTML output. 2020-10-20 15:29:42 +00:00
meta.php Tests: Replace a few instances of assertNotEquals() with assertNotFalse(). 2020-09-07 04:11:54 +00:00
multisite.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
pluggable.php Cache API: Introduce wp_cache_get_multi(). 2020-06-09 19:45:27 +00:00
post.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
query.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-api.php REST API: Add support for the oneOf and anyOf keywords. 2020-10-20 18:22:39 +00:00
rewrite.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
shortcode.php Tests: Update third-party video URLs in unit tests with more permanent videos. 2020-10-10 01:37:18 +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 Posts, Post Types: Check if taxonomy is set for the tax_input parameter of wp_insert_post(). 2020-10-27 16:40:35 +00:00
template.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
term.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
theme.php Bundled Themes: Make Twenty Twenty-One the default theme. 2020-10-20 02:02:37 +00:00
upload.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
url.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
user.php Tests: Use assertSame() in test_edit_user_blank_password(), for consistency with other assertions. 2020-10-11 15:49:30 +00:00
walker.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
widgets.php Widgets: Introduce before_sidebar and after_sidebar arguments for register_sidebar(). 2020-10-19 15:38:11 +00:00
wp.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00