wordpress-develop/tests/phpunit/tests
Boone Gorges adbed947d8 Don't bail out of term_exists() when term sanitizes to an empty string.
This change brings return values for failures of this sort in line with other
failed lookups in term_exists(): a null value is now returned in all cases
where the queried term is not found.

Adds unit test for the sanitization issue. Modifies existing unit test to
reflect the change in return value for empty term strings.

Props boonebgorges, georgestephanis.
Fixes #29589.

git-svn-id: https://develop.svn.wordpress.org/trunk@29865 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 03:15:50 +00:00
..
actions Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
admin Update unit tests to reflect: 2014-06-09 15:58:16 +00:00
ajax Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
attachment Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
canonical 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
comment WP_Comment_Query: comment__in, comment__not_in, post__in, post__not_in. 2014-10-02 01:40:56 +00:00
date Improve parameter sanitization in WP_Date_Query::build_query(). 2014-09-30 14:03:49 +00:00
dependencies wp_script_is( ..., 'enqueued' ) needs to check dependencies recursively - a single item's dependencies may only be a subset of the full dependency tree. Adds a new method on WP_Dependencies called ->recurse_deps(). 2014-07-20 00:28:57 +00:00
export When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors. 2013-11-25 22:49:51 +00:00
feed Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
filesystem Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
formatting Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +00:00
functions Remove unit test for is_https_url(), see [29309]. 2014-07-27 17:18:19 +00:00
general New remove() method and some unit tests for the WP_Error class. 2014-10-08 07:11:09 +00:00
http Add some unit tests for WP_HTTP::parse_url() to cover the <PHP 5.4.7 compatibility alterations. 2014-10-09 03:00:16 +00:00
image Fix setting default quality in WP_Image_Editor. 2014-10-04 13:11:38 +00:00
import Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +00:00
includes Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
meta Improve unit tests related to WP_Meta_Query. 2014-09-30 21:17:38 +00:00
option Transient timeouts are untestable when WP_INSTALLING is defined and set to ANY value. Transient timeouts cannot be tested during multisite runs because wpmu_create_blog() sets WP_INSTALLING. I have zero idea how these tests ever passed. 2014-07-03 01:16:33 +00:00
pomo Fix strict notices in Tests_POMO_PO. 2013-12-01 12:47:35 +00:00
post Change assertEqual to assertEqualSets since the order that travis-ci creates posts isn't consistent 2014-10-08 19:21:30 +00:00
query Improved unit test coverage for WP_Date_Query 2014-09-29 16:04:46 +00:00
term In get_terms(), select term taxonomy count for all values of 'fields'. 2014-10-06 22:04:11 +00:00
theme Call untrailingslashit() when adding a theme directory in register_theme_directory(). This prevents double-slashing in generated URLs. Don't add a directory if it is already present. 2014-07-19 23:06:54 +00:00
user Rename the public methods in the session tokens API. 2014-08-27 02:06:53 +00:00
xmlrpc Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +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 Require a non-empty $nonce value in wp_verify_nonce(). 2014-08-26 07:38:51 +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 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
category.php Update unit tests to reflect: 2014-06-09 15:58:16 +00:00
comment.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
compat.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
cron.php Pass $args as an array, rather than a splat, to wp_clear_scheduled_hook(). There are comments in the code describing the deprecated argument behavior. 2013-09-11 22:21:43 +00:00
db.php Properly suppress errors in test_empty_where_on_update(), which expects an empty WHERE clause. 2014-09-04 04:30: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 Unit tests for has_filter() not resetting the array pointer. 2014-09-02 06:49:11 +00:00
functions.php wp_extract_urls() needs to also grab URLs with query strings and hashes. 2014-09-23 02:49:22 +00:00
iterators.php When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors. 2013-11-25 22:49:51 +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 Revert [25405] and use a file that does exist. see #25282. 2013-09-12 17:47:40 +00:00
link.php In get_adjacent_post(), make $excluded_terms work as expected. 2014-07-19 22:26:43 +00:00
mail.php Avoid a notice and clean up setting/unsetting of globals by moving them into setUp() and tearDown() methods in Tests_Mail. 2013-09-12 04:46:49 +00:00
media.php Fix expected value in Tests_Media::test_video_shortcode_body(). 2014-08-17 11:48:03 +00:00
meta.php Use the primary meta_query clause when parsing orderby in WP_Query. 2014-10-08 15:11:14 +00:00
ms.php Add unit tests for get_blog_details(). 2014-10-02 21:47:25 +00:00
post.php Use HTTPS URLs for trac.wordpress.org (and use core.trac.wordpress.org) 2014-09-29 13:36:38 +00:00
query.php Make sure permalink structure is consistent when running query tests. 2014-07-03 01:50:02 +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 Make has_shortcode() recursive/work for nested shortcodes. 2014-07-16 22:04:08 +00:00
taxonomy.php Improve unit test coverage for wp_insert_term(). 2014-10-03 13:30:22 +00:00
term.php Don't bail out of term_exists() when term sanitizes to an empty string. 2014-10-09 03:15:50 +00:00
theme.php Add unit test to verify all bundled themes have valid text domain declared. 2013-12-12 00:36:27 +00:00
upload.php Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
url.php Forcing SSL logins now forces SSL for the entire admin, with no middle ground. 2014-05-29 03:58:41 +00:00
user.php Always sanitize user_nicename in wp_insert_user(). 2014-10-02 18:53:24 +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