Wordpress/tests/phpunit/tests
Scott Taylor 06eea1b33d After [28883], ensure that priorities have callbacks before returning true in has_filter().
Adds unit tests.

Props boonebgorges.
Fixes #29070.


git-svn-id: https://develop.svn.wordpress.org/trunk@29422 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-07 02:29:15 +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 Use assertEqualSets() instead of direct array comparison. 2014-07-13 11:27:07 +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 Tests Autop: remove <option> from the list of inline tags. It is valid only in specific context (<select>, <optgroup> or <datalist>) and should not be wrapped in <p>. Props kovshenin, fixes #28217. 2014-07-29 19:02:36 +00:00
functions Remove unit test for is_https_url(), see [29309]. 2014-07-27 17:18:19 +00:00
general Cleanup after [28671]: 2014-06-20 17:11:14 +00:00
http 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
image 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
import Eliminate some of our last remaining create_function() instances 2014-03-03 16:20:12 +00:00
includes Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
meta When using meta_query in a WP_Query, passing NOT EXISTS or '' to compare should not require value to be set. The resulting SQL should then produce the appropriate OR clause for existence of non-existence after passing the query to the $key_only_queries stack internally. 2014-03-24 19:56:54 +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 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
query Add support for a full path parameter to is_page() and is_single(). Props Jesper800, engelen, johnbillion. Fixes #16802. 2014-07-09 16:03:17 +00:00
term Revert [28613] and [28664]. A good idea, but too much BC baggage. 2014-06-20 16:20:35 +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 Tie cookies and nonces to user sessions so they may be invalidated upon logout. 2014-07-18 09:12:05 +00:00
xmlrpc XMLRPC: Restore support in wp.newPost for dates to be supplied in the structured dateTime.iso8601 format as well as still supporting dates specified as strings. 2014-07-10 14:16:20 +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 Move the trim() from wp_set_password() to inside wp_hash_password(). 2013-10-07 13:53:09 +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 In $wpdb->update(), prevent explosions when $where is empty. 2014-06-24 00:23: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 Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
filters.php After [28883], ensure that priorities have callbacks before returning true in has_filter(). 2014-08-07 02:29:15 +00:00
functions.php Update unit tests for sanitize_file_name() after [29290]. 2014-08-01 18:29:46 +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 Reinstate the changes from [28579] with some adjustments: 2014-06-20 18:26:17 +00:00
meta.php After [29339] and [29341], add more unit tests and less ambiguous type-checking before bailing in meta-related functions that expect a numeric value for $object_id. 2014-08-06 22:07:42 +00:00
ms.php After [29200], switch back to using static vars instead of adding 2 globals, as per Sergey. 2014-07-19 23:13:19 +00:00
post.php Consolidate some of the test functions added in [29344]. 2014-08-01 21:06:49 +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 Add @expectedIncorrectUsage to Tests_Taxonomy::test_register_long_taxonomy(). 2014-06-30 15:09:52 +00:00
term.php Avoid a race condition when multiple windows are open so that orphaned terms cannot be created by accident. 2014-07-16 21:51:40 +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 Account for WP_IMPORTING being defined in the unit tests added in [29339] when all tests are run. 2014-08-01 18:27:16 +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