Wordpress/tests/phpunit/tests
Joe McGill 2043bfee9a Media: Improved media titles when created from filename.
Preserves spaces and generally creates more accurate, cleaner titles from filenames of uploaded media.

Merge of [38615] to the 4.4 branch.

Fixes #37989.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@39712 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 16:14:39 +00:00
..
actions
admin Help Tab Order should be based on the Priority Argument 2015-12-27 02:13:20 +00:00
ajax Adjust unit tests to account for change in [37145]. 2016-03-30 19:53:40 +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 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
category Ensure that wp_list_categories() supports comma-separated lists for 'exclude' and 'exclude_tree'. 2015-12-18 18:13:58 +00:00
comment Comments: Ignore hierarchy in pagination calculation when comment threading is disabled. 2016-01-20 08:32:00 +00:00
customize Customizer: Prevent erroneously directing user to login screen when closing. 2016-01-20 08:36:17 +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 WPDB: Fall back to the connection charset when sanity checking strings. 2015-11-17 06:12:08 +00:00
dependencies Add a return value to wp_register_script() and wp_register_style() which matches the return value of WP_Dependencies::add(). 2015-05-10 19:56:15 +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 Feeds: <comments> is optional in RSS2, so don't include it when comments aren't present or open. Same for <wfw:commentRss> and <slash:comments> 2015-11-04 17:46:41 +00:00
filesystem Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
formatting Media: Improve handling of extensionless filenames. 2016-06-21 14:51:38 +00:00
functions 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
general Template: Always display the site title on the front page. 2016-01-04 17:18:30 +00:00
http HTTP Tests: Use login.wordpress.org/wp-login.php in test_get_response_cookies(). 2015-11-24 21:59:23 +00:00
image Remove the explicit Imagick extension test. 2015-10-21 22:40:48 +00:00
import Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
includes 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
link 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
meta Unit Tests: better fixtures for Tests_Meta_Slashes and Tests_WP_Customize_Section. 2015-10-17 21:28:43 +00:00
multisite Ensure that the scheme used in the URL returned by get_blogaddress_by_id() always reflects the blog's URL, instead of using http. 2015-10-30 02:01:32 +00:00
oembed Embeds: Improve performance when embedding a post from the current site. 2016-06-21 14:41:05 +00:00
option 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
pomo
post Add a unit test for wp_nav_menu() with container => '' 2015-11-25 18:18:37 +00:00
query Query: Ignore search terms consisting of a single dash. 2016-03-25 18:40:27 +00:00
rest-api REST API: Core typically sends nocache headers on all auth'ed responses, as in wp, admin-ajax, etc. Because the REST API infrastructure is hooked in pre-wp, we should be setting this ourselves. 2015-12-04 23:35:54 +00:00
rewrite Canonical / Query: After [36280] remove the unit tests which are no longer supported for 4.4. 2016-01-13 08:48:14 +00:00
term Revert [37642]. 2016-06-06 21:16:54 +00:00
theme
user When a post is scheduled for publication, treat it the same as a published post when calculating the capabilities required to edit or delete it. 2015-11-29 02:24:15 +00:00
xmlrpc XML-RPC: Revert [34681] as it broke date handling. 2016-01-03 19:49:34 +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 Unit Tests: since [32953], we can just use self::delete_user() instead of using if logic for Multisite. 2015-10-16 19:51:32 +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 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
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 Unit Tests: after [35186], "upgrade" the Canonical fixtures. 2015-10-15 05:50:40 +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: When a comment is submitted, ensure the user_ID element in the array that's passed to the preprocess_comment filter gets populated. 2015-12-21 02:57:06 +00:00
comment.php Comments: Ensure only approved comments trigger post author notifications 2016-01-02 03:34:35 +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 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
dbdelta.php Database: dbDelta() will no longer try to downgrade the size of TEXT and BLOB columns. 2016-07-01 06:58:40 +00:00
dependencies.php
file.php Tests: Clean up the resulting /tmp/foo* files from the tempnam call. 2015-03-31 02:10:52 +00:00
filters.php In remove_all_filters(), only remove callbacks that match the $priority parameter. 2014-12-31 19:06:29 +00:00
functions.php Formatting: when making unique filenames in wp_unique_filename() by adding an incrementing number, prefix it with a dash to disambiguate from files that end in numbers. 2015-10-20 04:04:26 +00:00
kses.php KSES: have you ever heard of the <bdo> HTML tag? Same. http://www.w3schools.com/tags/tag_bdo.asp 2015-10-13 17:17:13 +00:00
l10n.php
link.php Formatting: wp_make_link_relative() should return an empty string if no path is present in the link. 2015-11-03 21:35:17 +00:00
mail.php Mail: after [33124], add unit tests. 2015-11-11 22:04:59 +00:00
media.php Media: Improved media titles when created from filename. 2017-01-05 16:14:39 +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 Improve [35146] to only skip pluggable function signature tests for wp-includes/cache.php when an external object cache is in use. 2015-10-13 20:44:16 +00:00
post.php Pages: get_page_uri() should return the URI at which the resource being accessed is available at, this may include non-'publish' status posts. 2015-12-27 02:15:30 +00:00
query.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
rest-api.php REST API: Require namespace when registering routes. 2015-11-17 02:38:31 +00:00
rewrite.php Move the test_is_home_should_be_false_when_visiting_custom_endpoint_without_a_registered_query_var_and_page_on_front_is_set() test into a more appropriate place. 2015-10-18 01:34:29 +00:00
shortcode.php Shortcodes: = is a reserved character in shortcode names, mark it as such. 2015-12-26 04:47:58 +00:00
taxonomy.php Force non-public taxonomies to have a query_var of false. 2015-12-27 16:42:35 +00:00
term.php Revert [37642]. 2016-06-06 21:16:54 +00:00
theme.php Upgrade: New themes are not automatically installed on upgrade. This can still be explicitly asked for by defining CORE_UPGRADE_SKIP_NEW_BUNDLED as false. 2015-11-25 21:44:02 +00:00
upload.php wp_upload_dir() has a (little-known?) side effect: if you call it, it will attempt to create an uploads directory for the current month. As such, tearDown() and cleanup routines have to be in sync with this behavior when deleting bogus directories used in unit tests. 2014-11-30 19:05:52 +00:00
url.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
user.php Use 'invalid_username' error code when tripping 'illegal_user_logins'. 2015-12-04 23:24:56 +00:00
walker.php
widgets.php Widgets: Revert [34465], as it introduced a regression, making the $index argument of dynamic_sidebar() case-sensitive. 2016-01-02 03:38:45 +00:00