wordpress-develop/tests/phpunit/tests
Dominik Schilling (ocean90) 92dd472359 Script Loader: Introduce an API to register resource hints.
Resource hints allow browsers to prefetch specific pages or render them in the background to perform DNS lookups or to begin the connection handshake (DNS, TCP, TLS) in the background.

By default, `wp_resource_hints()` prints hints for "s.w.org" (the WordPress.org CDN) and for all scripts and styles which are enqueued from external hosts.
Use the `wp_resource_hints` filter to add custom domains and URLs for `dns-prefetch`, `preconnect`, `prefetch` or `prerender`.

Props voldemortensen, swissspidy.
Fixes #34292.

git-svn-id: https://develop.svn.wordpress.org/trunk@37920 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-29 19:35:27 +00:00
..
actions Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
admin Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
ajax Tests: Don't create unused users in Tests_Ajax_DeleteComment. 2016-05-09 19:16:35 +00:00
attachment Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
bookmark In get_bookmarks(), don't cache if 'orderby=rand'. 2016-05-25 18:29:01 +00:00
canonical Tests: After [37260], use WP's setUpBeforeClass() wrappers. 2016-04-20 15:30:40 +00:00
category Introduce required argument for wp_dropdown_categories(). 2016-05-19 02:38:33 +00:00
comment Comments: Do not flag a comment as a duplicate if the comment_author_email is provided but not a match. 2016-06-15 14:50:38 +00:00
customize Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:16:54 +00:00
date Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
db Database: Set MySQL connection collation. 2016-04-28 01:38:31 +00:00
dependencies External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:26:06 +00:00
external-http Unit Tests: move some oEmbed tests that can trigger HTTP calls to Tests_External_HTTP_OEmbed. 2015-10-15 01:28:05 +00:00
feed Improve Automated Feed Tests 2016-02-12 19:02:25 +00:00
filesystem Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
formatting I18N: Add support for the Catalan flown dot in remove_accents(). 2016-06-23 13:27:32 +00:00
functions Plugins: Normalize WP_PLUGIN_DIR in the test added in [37332], otherwise it fails on Windows. 2016-06-15 18:30:32 +00:00
general Script Loader: Introduce an API to register resource hints. 2016-06-29 19:35:27 +00:00
http HTTP: Add unit tests for wp_get_http_headers() and wp_remote_retrieve_headers(). 2016-06-29 12:46:59 +00:00
image Media/Unit Tests: ensure that image sizes are indeed removed when errors are raised before assertions in Tests_Media. 2016-04-29 17:51:54 +00:00
import Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
includes Tests: Ensure that the default wp_die() handler can handle a WP_Error object. 2016-03-23 19:00:38 +00:00
l10n I18N: Enable unloading of text domains that have been loaded just in time. 2016-06-23 14:47:44 +00:00
link Canonical: Introduce wp_get_canonical_url(). 2016-06-11 13:30:23 +00:00
menu Nav Menus: Use WP_Query for quick searches. 2016-06-27 11:50:31 +00:00
meta Tests: Change some 'group' annotations to 'ticket'. 2016-05-30 04:37:57 +00:00
multisite Multisite: Introduce WP_Network_Query. 2016-06-28 21:26:48 +00:00
oembed Embeds: Add tests for the WP_Embed class. 2016-06-28 20:30:15 +00:00
option Permalinks: Validate custom permalink structures. 2016-06-19 12:01:11 +00:00
pomo mbstring.func_overload test should be skipped properly. 2016-02-29 22:37:42 +00:00
post Post Thumbnails: Add helper functions for attachment captions. 2016-06-29 17:28:00 +00:00
query Add tests for no_found_rows behavior of WP_Query. 2016-05-31 19:28:46 +00:00
rest-api REST API: Include a refreshed nonce in a X-WP-Nonce header when responding to an authenticated request. 2016-06-29 03:00:54 +00:00
rewrite Canonical / Query: Restore the is_404() check in wp_old_slug_redirect() which was removed in [34659]. 2016-03-23 21:53:44 +00:00
term Fix orderby meta handling for WP_Term_Query. 2016-06-25 16:22:55 +00:00
theme I18N: Remove the requirement to call load_plugin_textdomain() / load_theme_textdomain(). 2016-05-10 20:04:52 +00:00
user Users: The 'who' parameter should not interfere with 'meta_key' + 'meta_value' in WP_User_Query. 2016-05-04 18:56:58 +00:00
xmlrpc Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
actions.php Tests: After [37861] move tests for deprecated filters into filters.php. 2016-06-29 13:13:53 +00:00
adminbar.php Unit Tests: better fixtures for Tests_AdminBar. Don't force-delete some posts: some filter callbacks are no-ops on Multisite if the post is vanquished. 2015-10-17 20:48:33 +00:00
auth.php Authentication: Allow users to log in using their email address. 2016-02-22 23:14:27 +00:00
avatar.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
basic.php Fix License test 2016-03-05 20:21:23 +00:00
cache.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
canonical.php Canonical: Improve the method names and inline docs for canonical redirect tests. 2016-02-25 21:55:57 +00:00
category.php Move wp_dropdown_categories() tests into their own file. 2016-05-19 02:22:59 +00:00
comment-submission.php Comments: Restrict the maximum characters for input fields within the comments template. 2016-01-13 01:24:46 +00:00
comment.php Add tests demonstrating individual comment cache invalidation. 2016-06-01 17:15:27 +00:00
compat.php WPDB: When checking that a string can be sent to MySQL, we shouldn't use mb_convert_encoding(), as it behaves differently to MySQL's character encoding conversion. 2015-05-06 02:59:50 +00:00
cron.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
db.php Tests: Fix an incorrect @ticket header introduced in [37601]. 2016-06-01 02:40:19 +00:00
dbdelta.php Database: Normalize index definitions in dbDelta(). 2016-05-27 11:56:20 +00:00
dependencies.php Remove tests for code still in development, see #22229. If accidentally run, they produce fatal errors. 2013-10-07 14:17:13 +00:00
file.php Tests: Merge the two different wp_normalize_path() tests. 2016-03-08 07:06:12 +00:00
filters.php Plugins: Return the original value in apply_filters_deprecated() if no filter is registered for the tag. 2016-06-29 13:21:24 +00:00
functions.php I18N: Revert the test added in [37716], as it causes errors when running the full suite. 2016-06-15 18:04:31 +00:00
kses.php KSES: Allow the reversed attribute for <ol>. 2015-12-16 09:53:18 +00:00
l10n.php L10n: Add unit tests for the override_load_textdomain filter. 2016-06-18 10:09:26 +00:00
link.php Move get_adjacent_post() tests to their own file. 2015-12-23 19:38:29 +00:00
locale.php I18N: Introduce tests for WP_Locale. 2016-01-13 23:49:52 +00:00
mail.php Tests: Introduce reset_phpmailer_instance() function. 2016-05-04 03:48:46 +00:00
media.php Post Thumbnails: Add helper functions for attachment captions. 2016-06-29 17:28:00 +00:00
meta.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
multisite.php Initialise $_SERVER[ 'REMOTE_ADDR' ] during the test bootstrap so individual tests need not. 2015-09-15 08:04:33 +00:00
pluggable.php Users: Deprecate the get_currentuserinfo() pluggable function. 2016-01-15 10:15:21 +00:00
post.php Posts: Add hooks for post sticky status changes. 2016-06-23 15:51:03 +00:00
query.php WP_Query taxonomy query vars should be set to first of multiple taxonomies. 2016-02-06 03:57:33 +00:00
rest-api.php REST API: Create the general wp_check_jsonp_callback() function for validating JSONP callback functions. 2016-06-06 21:33:30 +00:00
rewrite.php Rewrite Rules: Ensure url_to_postid() operates as expected when it's used in the context of another site within a Multisite network that uses mixed URL schemes. 2016-02-28 02:12:13 +00:00
shortcode.php Smilies: Move convert_smilies to happen later in the the_content filter. 2016-04-22 07:07:03 +00:00
taxonomy.php Introduce publicly_queryable taxonomy argument. 2016-02-13 03:50:37 +00:00
term.php Tests: Move wp_set_object_terms() tests to their own file. 2016-06-06 21:22:43 +00:00
theme.php Comments: Commit tests missed in [35848]. 2015-12-10 03:15:44 +00:00
upload.php Correct some more tests which were using example.org instead of WP_TESTS_DOMAIN. 2016-02-26 00:25:10 +00:00
url.php Refactor some janky URL tests into data providers for clarity and better error reporting. 2016-02-26 02:10:32 +00:00
user.php Tests: Introduce reset_phpmailer_instance() function. 2016-05-04 03:48:46 +00:00
walker.php Add unit tests for Walker class. 2014-08-01 20:35:25 +00:00
widgets.php Widgets: Revert [37425] and [37427]. 2016-06-06 21:50:29 +00:00
wp.php Query: Add a WP::remove_query_var() helper function. 2016-01-05 20:56:10 +00:00