Wordpress/tests/phpunit/tests
Rachel Baker 08b94111cb REST API: Remove reference to the plugin in infrastructure activation test.
Also adds class exists checks for WP_REST_Request and WP_REST_Response.

Props kraftbj.
Fixes #38279.

git-svn-id: https://develop.svn.wordpress.org/trunk@38771 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-10 21:48:02 +00:00
..
actions Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
admin Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
ajax Themes: Account for uppercase chars when managing themes. 2016-10-03 18:12:57 +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 Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available. 2016-09-26 17:01:48 +00:00
category Introduce `required` argument for `wp_dropdown_categories()`. 2016-05-19 02:38:33 +00:00
comment Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
customize Customize: Ensure `customize_validate_{$setting->id}` filters apply on input post values for `WP_Customize_Setting` subclasses that neglect to apply the filter themselves. 2016-10-09 20:07:16 +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 Build/Test Tools: Remove many unnecessary calls to `rand_str()` which can, in theory, fail at random. Static strings are much more appropriate. 2016-08-26 20:21:30 +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 Unit Tests: 2016-08-27 08:35:16 +00:00
filesystem Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
formatting Emoji: Update some failing unit tests. 2016-10-04 10:37:59 +00:00
functions Add 'urn' to the list of URI protocols whitelisted by default. 2016-09-30 13:14:54 +00:00
general Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
hooks Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
http Build/Test Tools: Revert [38759]. PHPUnit's `@requires` syntax was introduced in PHPUnit 3.7, but the tests for PHP 5.2 use PHPUnit 3.6 because it's the latest version that supports PHP 5.2. 2016-10-08 22:42:12 +00:00
image Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
import Add wordpress-importer tests demonstrating slashed data behavior. 2016-08-19 13:26:04 +00:00
includes Tests: Reset post-related globals after each test. 2016-09-30 03:15:36 +00:00
l10n I18N: Introduce a user-specific language setting. 2016-10-03 07:03:41 +00:00
link Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
load Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:36:37 +00:00
media Remove unnecessary uniqueness check in `get_attachment_taxonomies()`. 2016-08-30 03:06:06 +00:00
menu Docs: Fix phpdoc and jsdoc typos introduced in [38584] and [38587], respectively. 2016-09-11 18:45:59 +00:00
meta Unit Tests: 2016-08-27 08:35:16 +00:00
multisite Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
oembed Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
option Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
pomo mbstring.func_overload test should be skipped properly. 2016-02-29 22:37:42 +00:00
post Menus: Do not show trashed posts in nav menus. 2016-10-07 16:49:19 +00:00
query Media: Better handling of JOINs when searching filenames. 2016-10-05 19:50:02 +00:00
rest-api REST API: Enable sanitize_callback to return WP_Error. 2016-09-14 15:49:37 +00:00
rewrite Unit Tests: 2016-08-27 08:35:16 +00:00
taxonomy Allow attachment taxonomies to be fetched as objects. 2016-08-20 17:34:13 +00:00
term Taxonomy: Introduce `WP_Taxonomy` and use it in `register_taxonomy()` and `unregister_taxonomy()`. 2016-10-07 17:11:02 +00:00
theme Tests: Add newly introduced theme to theme list. 2016-10-03 18:44:19 +00:00
user Role/Capability: Add tests for all user roles that check custom capabilities that do not have any form of handling (eg. in a `map_meta_cap` filter). 2016-10-10 14:39:35 +00:00
xmlrpc Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms. 2016-09-30 22:39:32 +00:00
actions.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
adminbar.php Toolbar: Be more strict about adding a 'View Posts' link to the toolbar. 2016-10-03 08:37:27 +00:00
auth.php Security: Trigger a `_doing_it_wrong()` when `check_ajax_referer()` is called without its first parameter. This brings it inline with `check_admin_referer()`. 2016-08-28 17:14:52 +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 Tests: Require `Basic_Object` and `Basic_Subclass` files earlier in call stack. 2016-08-30 14:32:04 +00:00
cache.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
canonical.php Unit Tests: 2016-08-27 08:35:16 +00:00
category.php Move `wp_dropdown_categories()` tests into their own file. 2016-05-19 02:22:59 +00:00
comment-submission.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
comment.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +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 Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
db.php Database: Fall back to `utf8` when `utf8mb4` isn't supported. 2016-09-08 23:48:05 +00:00
dbdelta.php Database: Normalise index names in `dbDelta()`. 2016-09-12 05:08:17 +00:00
dependencies.php
file.php Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
filters.php Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
functions.php Add test for each whitelisted URI protocol in `wp_allowed_protocols()`. 2016-09-30 13:12:00 +00:00
kses.php Formatting: Allow KSES custom elements with hyphens 2016-09-02 04:16:00 +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 Mail: Don't set Sender field when setting From. 2016-08-20 02:16:54 +00:00
media.php Media: Correct the hostname used in the `wp_get_attachment_metadata()` test. 2016-10-08 12:04:39 +00:00
meta.php Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +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
oembed.php Unit Tests: Remove unused variable in `Tests_oEmbed::dataShouldNotMatchOembedRegex()`. 2016-10-04 00:50:09 +00:00
pluggable.php Users: Deprecate the `get_currentuserinfo()` pluggable function. 2016-01-15 10:15:21 +00:00
post.php Unit Tests: 2016-08-27 08:35:16 +00:00
query.php Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available. 2016-09-26 17:01:48 +00:00
rest-api.php REST API: Remove reference to the plugin in infrastructure activation test. 2016-10-10 21:48:02 +00:00
rewrite.php Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available. 2016-09-26 17:01:48 +00:00
shortcode.php Shortcodes: Add a `do_shortcode_tag` filter. 2016-10-04 00:38:45 +00:00
taxonomy.php Hooks: Add the new class `WP_Hook`, and modify hook handling to make use of it. 2016-09-08 03:54:13 +00:00
template.php Themes: Add the non-encoded form of the queried item slug to the template hierarchy when the slug contains non-ASCII characters. 2016-09-09 00:47:17 +00:00
term.php Unit Tests: 2016-08-27 08:35:16 +00:00
theme.php Themes: Remove `paged.php` from the theme template hierarchy. 2016-10-07 21:02:39 +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 General: Restore usage of `$wpdb`, instead of `$this->db`. 2016-10-10 06:37:02 +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