wordpress-develop/tests/phpunit/tests
Joe McGill 7684a241b3 Media: Reduce failing uploads following 4.7.1.
[39831] introduced more strict MIME type checking for uploads, which
resulted in unintetionally blocking several filetypes that were
previously valid. This change uses  a more targeted approach to MIME
validation to restore previous behavior for most types.

Props blobfolio, iandunn, ipstenu, markoheijnen, xknown, joemcgill.
Fixes #39550, #39552.

git-svn-id: https://develop.svn.wordpress.org/trunk@40124 602fd350-edb4-49c9-b593-d223f7449a82
2017-02-25 16:07:25 +00:00
..
actions Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
admin Themes: Add a unit test for get_theme_feature_list() to make sure that the list of theme features pulled from the WordPress.org API returns the expected data structure. 2017-01-15 06:50:00 +00:00
ajax Customize: Defer populating post_name for auto-draft posts in customized state until posts are published. 2016-12-05 19:32:09 +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 Taxonomy: Introduce get_term_parents_list(). 2016-12-09 16:09:31 +00:00
comment Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:52:51 +00:00
customize Customize: Extend auto-draft life of a customize_changeset post whenever modified. 2017-02-05 06:38:57 +00:00
date Date/Time: Improve date_i18n() timezone tests. 2016-11-08 22:31:51 +00:00
db Tests: Restore the database connection earlier when switching test groups. 2016-12-21 04:58:47 +00:00
dependencies Build/Test Tools: Utilise assertFileExists() and assertFileNotExists() in more places. 2016-11-08 23:49:11 +00:00
external-http Remove the WordPress version number from readme.html. 2016-12-12 08:00:24 +00:00
feed Feeds: Prevent empty feeds from returning 404 errors. 2017-01-29 23:08:54 +00:00
filesystem Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
formatting Tests: wpautop() should not add extra </p> before <figcaption>. 2017-01-16 17:56:34 +00:00
functions General: Introduce a wp_list_sort() helper function, v2. 2016-10-25 21:25:25 +00:00
general Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places. 2016-11-09 00:01:42 +00:00
hooks Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
http HTTP API: Restore backwards compatibility with the http_api_curl filter - it expects that the handle parameter is passed as a reference, however [39212] missed that. 2017-02-17 05:05:03 +00:00
image Media: Reset Exif orientation after rotate in WP_Image_Editor_Imagick. 2017-02-25 05:25:40 +00:00
import Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places. 2016-11-09 00:01:42 +00:00
includes Tests: Reset post-related globals after each test. 2016-09-30 03:15:36 +00:00
l10n I18N: Add an additional caching layer for _load_textdomain_just_in_time(). 2016-11-21 16:06:38 +00:00
link Build/Test Tools: Correctly reference function names in @covers entries. 2017-01-17 02:43:25 +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 Multisite: Use WP_Network_Query in WP_Network::get_by_path(). 2017-02-22 10:41:20 +00:00
oembed Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate. 2017-01-17 03:39:36 +00:00
option Options: Prevent unnecessary SQL updates by update_option. 2016-12-11 21:42:12 +00:00
pomo mbstring.func_overload test should be skipped properly. 2016-02-29 22:37:42 +00:00
post Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:52:51 +00:00
query WP_Query: Add tests for the combination of orderby=post__in and order. 2017-02-12 18:06:32 +00:00
rest-api REST API: Fix behavior of sticky posts filter when no posts are sticky. 2017-02-25 05:02:17 +00:00
rewrite Tests: Restore the database connection earlier when switching test groups. 2016-12-21 04:58:47 +00:00
taxonomy Allow attachment taxonomies to be fetched as objects. 2016-08-20 17:34:13 +00:00
term Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:52:51 +00:00
theme Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate. 2017-01-17 03:39:36 +00:00
user User Query: Cast $user_total as an int. 2017-01-16 23:23:06 +00:00
xmlrpc Build/Test Tools: Re-use a bunch of fixtures in test classes for user and XMLRPC tests. 2016-11-10 01:53:08 +00:00
actions.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
adminbar.php Multisite: Show menu items in My Sites > Network Admin admin bar menu based on more precise capability checks. 2017-01-24 16:28:30 +00:00
auth.php Build/Test Tools: Add an extra WP_Error assertion when testing a valid user activation key. This provides a better failure message if the assertion does fail. 2016-11-27 01:24:58 +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 Build/Test Tools: Specify exact node version in package.json. 2016-12-04 17:29:26 +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 Comments: Abstract die() calls from comment submission routine. 2016-10-11 03:42:28 +00:00
comment.php REST API: Fix test failures. 2016-10-20 05:12:26 +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: Remove commented out tests that have existed in an unimplemented state since the dawn of the test infrastructure. 2016-12-09 23:11:28 +00:00
db.php Tests: Restore the database connection earlier when switching test groups. 2016-12-21 04:58:47 +00:00
dbdelta.php dbDelta: Ignore index subparts when checking for duplicate indices. 2017-01-17 04:00:09 +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 Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
filters.php Plugins: Add a current_priority() method to WP_Hook. 2016-12-02 07:09:33 +00:00
functions.php Media: Reduce failing uploads following 4.7.1. 2017-02-25 16:07:25 +00:00
kses.php KSES: Deprecate wp_kses_js_entities(). 2016-10-13 22:24:27 +00:00
l10n.php I18N: In wp_dropdown_languages() rename the new show_site_locale_default argument to show_option_site_default. 2016-11-21 16:14:01 +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 a locale-switching function. 2016-10-26 15:35:58 +00:00
mail.php Mail: Set a better error code when triggering wp_mail_failed. 2016-11-02 04:26:18 +00:00
media.php Media: Avoid PHP Warnings in get_post_galleries() when processing empty [gallery] shortcodes and avoid returning the incorrect results when the global $post does not match the provided post ID. 2017-02-17 06:45:31 +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
pluggable.php Users: Deprecate the get_currentuserinfo() pluggable function. 2016-01-15 10:15:21 +00:00
post.php Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places. 2016-11-09 00:01:42 +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: Fix multiple issues with setting dates of posts and comments. 2017-02-21 18:17:32 +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 new strip_shortcodes_tagnames filter. 2016-10-23 14:24:26 +00:00
taxonomy.php Taxonomy: Disallow overriding the name property when registering a taxonomy. 2017-02-06 19:38:36 +00:00
template.php Posts, Post Types: Add support for post type templates. 2016-10-26 08:06:43 +00:00
term.php Unit Tests: 2016-08-27 08:35:16 +00:00
theme.php Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate. 2017-01-17 03:39:36 +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