Wordpress/tests/phpunit/tests
Boone Gorges 07abae914e In get_next_comments_link(), ensure proper pagination when no 'cpage' query var is found.
The 'cpage' query var is only set when using `comments_template()` to display
comments. If displaying them in a context where 'cpage' is not yet set, the
default value should be 1, not 0.

Props MomDad, couturefreak.
Fixes #20319.

git-svn-id: https://develop.svn.wordpress.org/trunk@31617 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 03:56:21 +00:00
..
actions Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
admin Don't parse empty 'tax_input' keys in edit_post(). 2015-02-09 22:53:40 +00:00
ajax Prevent terms in a show_in_quick_edit=false taxonomy from being updated by a faked AJAX request. 2015-01-31 19:37:12 +00:00
attachment Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
canonical Remove failing unit tests from 'canonical' group. 2014-11-08 20:36:27 +00:00
category Add unit tests for 'show_option_all' behavior of wp_list_categories(). 2015-01-30 01:39:31 +00:00
comment Improve 'orderby' syntax for WP_Comment_Query. 2015-02-16 14:09:40 +00:00
customize Fix failing Tests_Dependencies_jQuery::test_wp_script_is_dep_enqueued test. 2015-02-11 22:44:20 +00:00
date WP_Date_Query date validation should not fail for hour = 0. 2015-01-20 19:12:48 +00:00
db WPDB: Some character set tests were failing if DB_CHARSET was empty, or a non-utf8 character set. 2015-02-09 00:38:11 +00:00
dependencies Separate the tests for IE conditional comments support in WP_Scripts. Props valendesigns, see 16024. 2015-01-31 20:40:49 +00:00
feed Fix PHP notice in Tests_Feed_RSS2::test_items(). 2014-11-10 02:04:22 +00:00
filesystem Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
formatting When sanitizing a URL to redirect to, UTF-8 characters can be URL encoded, instead of being removed. 2015-02-28 02:20:52 +00:00
functions Ignore case when checking string 'false' in wp_validate_boolean(). 2014-11-03 15:54:42 +00:00
general Avoid a PHP Warning when add_args is passed as false to paginate_links(). 2015-02-12 01:38:26 +00:00
http HTTP API: Fix an issue where the limit_response_size parameter wasn't working properly with large documents and the cURL transport. 2015-01-29 03:57:42 +00:00
image Use PHP 5.2 compatible syntax in image tests. 2015-02-22 21:41:22 +00:00
import Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +00:00
includes Ensure that a request URL is always set in WP_UnitTestCase::go_to(). 2015-02-23 01:07:18 +00:00
link In get_next_comments_link(), ensure proper pagination when no 'cpage' query var is found. 2015-03-05 03:56:21 +00:00
meta Make orderby=meta_value compatible with meta_query when relation=OR. 2014-10-19 18:53:55 +00:00
multisite Use a less complex approach for enforcing path slashes in update_blog_details() 2015-01-12 04:20:47 +00:00
option Respect 'default_option_' filters during early sanity checks in add_option() and update_option(). 2015-02-18 19:13:43 +00:00
pomo Fix strict notices in Tests_POMO_PO. 2013-12-01 12:47:35 +00:00
post In wp_get_attachment_url(), convert to HTTPS when possible. 2015-03-05 02:38:59 +00:00
query More careful type conversion in WP_Query is_*() methods. 2015-02-14 02:08:46 +00:00
term Add 'orderby=description' support to get_terms(). 2015-02-24 16:36:26 +00:00
theme Clean up 'post-thumbnail' theme support unit tests. 2014-11-01 04:00:59 +00:00
user Add orderby=meta_value_num support to WP_User_Query. 2015-02-08 16:58:14 +00:00
xmlrpc Remove failing test_network_limit() XML-RPC test. 2014-11-23 01:22:15 +00:00
actions.php Introduce doing_filter() and doing_action() to identify hooks in progress. 2014-02-26 18:43:59 +00:00
adminbar.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
auth.php Type cast $nonce to string in wp_verify_nonce(). 2014-11-26 19:18:02 +00:00
avatar.php In get_avatar_data(), there's no need to return false if we couldn't find an avatar, as Gravatar can handle being given an empty email hash. This allows the default avatar to show when no email address is given. 2015-01-12 00:19:34 +00:00
basic.php Adds a unit test to demonstrate that the order of case and default in a switch statement does not matter. 2014-05-30 17:31:51 +00:00
cache.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
canonical.php Remove failing unit tests from 'canonical' group. 2014-11-08 20:36:27 +00:00
category.php In wp_dropdown_categories(), allow the term field used to populate option valuesto be specified. 2014-12-30 21:30:16 +00:00
comment.php Respect comment_date and comment_date_gmt params in wp_new_comment(). 2015-03-05 02:59:47 +00:00
compat.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
cron.php wp_schedule_single_event() should not prevent scheduling a future duplicate event. It should only reject an event as a duplicate if there is already a similar event scheduled within 10 minutes of the given timestamp. 2014-10-17 19:16:26 +00:00
db.php WPDB: Some character set tests were failing if DB_CHARSET was empty, or a non-utf8 character set. 2015-02-09 00:38:11 +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 Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +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 Remove redundant parameter. 2015-01-31 02:11:46 +00:00
kses.php Make wp_kses_no_null() remove any invalid control characters in a string. 2014-07-01 18:00:50 +00:00
l10n.php Remove failing is_textdomain_loaded() test. 2014-11-22 20:36:51 +00:00
link.php In get_permalink(), don't resolve to pretty permalink if post has 'future' status. 2015-01-09 16:39:56 +00:00
mail.php Remove failing test for unimplemented wp_mail() enhancement. 2014-11-22 20:05:34 +00:00
media.php Improve get_media_embedded_in_content() so that it returns the media it finds in the same order that it appears in the content. 2015-02-27 16:11:00 +00:00
meta.php Update the tests for get_metadata() to reflect the revert in r30701. 2014-12-02 03:43:17 +00:00
multisite.php Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
post.php Check attachments as well as the current post type when checking for duplicate post slugs. This avoids creating a page with a slug which conflicts with an existing attachment (the inverse is already handled). 2014-11-30 04:48:54 +00:00
query.php In WP_Query::get_queried_object(), avoid PHP notices when is_tax is paired with an empty tax_query. 2015-02-07 19:49:17 +00:00
rewrite.php Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls. 2014-07-03 01:42:57 +00:00
shortcode.php Remove failing shortcode unit tests 2014-11-08 22:50:30 +00:00
taxonomy.php Use more descriptive names for register_post_type() and register_taxonomy() tests with too long and too short names. 2015-02-13 23:33:56 +00:00
term.php Split shared taxonomy terms on term update. 2015-02-11 19:41:54 +00:00
theme.php Fix formatting in [29946]. 2014-10-17 22:14:49 +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 In get_adjacent_post(), return private post if the current user has the capacity to read it. 2015-01-30 02:19:46 +00:00
user.php Remove failing tests related to WP_User::__unset(). 2014-11-22 15:36:00 +00:00
walker.php Add unit tests for Walker class. 2014-08-01 20:35:25 +00:00
widgets.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00