Wordpress/tests/phpunit/tests
Rachel Baker 2ff19ab7d3 Post Thumbnails: When using add_theme_support( ‘post-thumbnails’, array( $post_types) ) merge the supported post_types.
Allow the adding of post-thumbnail support for one or more post_types without unsetting any previously added post_types. This matches the behavior of other uses of `add_theme_support()` and the expectations of a function with a prefix of “add”.
To unset post-thumbnail support use `remove_theme_support()` instead.

Fixes #22080

Props alexkingorg, jmichaelward, and flixos90.

git-svn-id: https://develop.svn.wordpress.org/trunk@37308 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-26 17:04:25 +00:00
..
actions
admin Tests: Remove test_new_files_are_not_in_old_files_array() from [36843]. 2016-03-08 16:44:25 +00:00
ajax Media: Remove an extra quote when sending a link of a media file to the editor. 2016-04-21 21:20:26 +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
canonical Tests: After [37260], use WP's setUpBeforeClass() wrappers. 2016-04-20 15:30:40 +00:00
category Improve error handling in get_categories(). 2016-03-14 13:52:14 +00:00
comment Comments: add a $comment parameter to get_comment_author_url_link(). 2016-04-22 22:44:33 +00:00
customize Customize: Harden assignment of Customizer settings transports for selective refreshable widgets 2016-04-07 20:58:56 +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 Tests: When testing the utf8mb4 charset, ensure that the current MySQL server has utf8mb4 support. 2015-12-29 04:39:02 +00:00
dependencies Ensure consistent dependency order when using wp_add_inline_script() 2016-04-10 03:32:47 +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
formatting Emoji: The :roll: smiley is now an emoji. 2016-04-22 06:28:51 +00:00
functions Tests: Pre-declare the $year_url property before initialization in Tests_Get_Archives::setUp(). 2016-04-21 02:55:52 +00:00
general Template: Remove $size reference from get_custom_logo(). 2016-03-30 17:19:41 +00:00
http HTTP API: Add the missing 1xx HTTP response codes as constants of the WP_Http class, and add tests to ensure all available response codes are covered. 2016-02-28 01:45:24 +00:00
image Media: Fix typo in test_image_preserves_alpha_on_rotate(). 2016-03-15 03:50:40 +00:00
import
includes Tests: Ensure that the default wp_die() handler can handle a WP_Error object. 2016-03-23 19:00:38 +00:00
l10n Tests: Don't modify global state before checking whether to skip get_locale() tests. 2016-02-26 20:28:07 +00:00
link Permalinks: Make get_post_type_archive_link() work for the 'post' post type. 2016-01-08 22:00:48 +00:00
meta Remove tests related to wp_*_post_meta() functions. 2016-02-29 22:13:28 +00:00
multisite Tests: Account for flexible IDs in main network deletion test 2016-04-22 15:21:14 +00:00
oembed Embeds: Adjust the iframe title attribute for improved accessibility. 2016-03-07 09:59:02 +00:00
option Options: Do not set network options to autoload in single site 2016-04-16 19:47:14 +00:00
pomo mbstring.func_overload test should be skipped properly. 2016-02-29 22:37:42 +00:00
post Themes: Revert [36112] 2016-04-19 21:23:20 +00:00
query Tests: More explicit fixture content when testing s=0 query string. 2016-04-21 15:52:33 +00:00
rest-api REST API: Deliver parameters unadulterated instead of slashed. 2016-04-06 21:01:11 +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 test related to cap check in get_edit_term_link(). 2016-03-14 01:51:12 +00:00
theme Post Thumbnails: When using add_theme_support( ‘post-thumbnails’, array( $post_types) ) merge the supported post_types. 2016-04-26 17:04:25 +00:00
user Unit Tests: prevent rewrite spillage from @group author unit tests. 2016-04-22 23:47:27 +00:00
xmlrpc XMLRPC: Unit tests left off [r37043] 2016-03-22 15:11:06 +00:00
actions.php
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 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
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 Comments: Unit test for `wp_get_comment_fields_max_lengths(). 2016-02-12 14:17:13 +00:00
compat.php
cron.php
db.php WPDB: Reset connection status variables when the connection is closed. 2016-03-15 03:27:14 +00:00
dbdelta.php Tests: Add Tests_dbDelta::assertTableHasPrimaryKey(). 2016-02-17 18:54:27 +00:00
dependencies.php
file.php Tests: Merge the two different wp_normalize_path() tests. 2016-03-08 07:06:12 +00:00
filters.php
functions.php Improve testability and coverage of wp_ext2type(). 2016-04-13 03:11:25 +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 _n_noop() and _nx_noop(). 2016-02-28 20:48:58 +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 Build/Test Tools: Reset the PHPMailer mock in Tests_Mail::tearDown(). 2016-04-23 08:15:11 +00:00
media.php Media: fix erroneously inserting a rel attribute in get_image_send_to_editor(). Reverts most of [34259] and [34260] and adds a unit test. 2016-03-18 20:04:19 +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
pluggable.php Users: Deprecate the get_currentuserinfo() pluggable function. 2016-01-15 10:15:21 +00:00
post.php Taxonomy: Improve backward compatibility on the wp-admin/term.php page. 2016-03-07 12:55:04 +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: Unit test for OPTIONS request should call rest_send_allow_header 2016-03-03 11:37:48 +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 Order terms by 'name' when populating object term cache. 2015-12-22 01:50:08 +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 Users: Add a unit test for [37276]. 2016-04-21 11:51:59 +00:00
walker.php
widgets.php Widgets: Revert [34465], as it introduced a regression, making the $index argument of dynamic_sidebar() case-sensitive. 2015-12-31 03:12:36 +00:00
wp.php Query: Add a WP::remove_query_var() helper function. 2016-01-05 20:56:10 +00:00