Wordpress/tests/phpunit/tests
Aaron Jorbin 63cdf85fad Correct usage of @Covers for Tests_Post_Types
When @covers is used with a plain alphanumeric string, PHPUnit assumes that it is covering a class. If there is no class, it fails and exits rather than continuing to generate coverage. To cover a global function, the name must start with ::. See https://phpunit.de/manual/5.3/en/appendixes.annotations.html#appendixes.annotations.covers

Introduced in [36768].

Fixes #36867. See #35985



git-svn-id: https://develop.svn.wordpress.org/trunk@37459 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-18 17:13:11 +00:00
..
actions
admin Tests: Remove test_new_files_are_not_in_old_files_array() from [36843]. 2016-03-08 16:44:25 +00:00
ajax Tests: Don't create unused users in Tests_Ajax_DeleteComment. 2016-05-09 19:16:35 +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 Tests: After [37260], use WP's setUpBeforeClass() wrappers. 2016-04-20 15:30:40 +00:00
category Improve error handling in get_categories(). 2016-03-14 13:52:14 +00:00
comment Correct usage of Covers for Tests_Update_Comment_Count_Now 2016-05-17 20:19:50 +00:00
customize Customize: Ensure that wp_setup_nav_menu_item filter applies consistently on nav_menu_item setting values. 2016-05-10 06:40:48 +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 Database: Set MySQL connection collation. 2016-04-28 01:38:31 +00:00
dependencies Ensure consistent dependency order when using wp_add_inline_script() 2016-04-10 03:32:47 +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 Improve Automated Feed Tests 2016-02-12 19:02:25 +00:00
filesystem Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
formatting Emoji: The :roll: smiley is now an emoji. 2016-04-22 06:28:51 +00:00
functions Plugins: In plugin_basename() normalize the file path before unresolving symlinks. 2016-04-30 15:08:06 +00:00
general Template: Remove $size reference from get_custom_logo(). 2016-03-30 17:19:41 +00:00
http HTTP API: Replace internals with Requests library. 2016-05-13 04:41:45 +00:00
image Media/Unit Tests: ensure that image sizes are indeed removed when errors are raised before assertions in Tests_Media. 2016-04-29 17:51:54 +00:00
import Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
includes Tests: Ensure that the default wp_die() handler can handle a WP_Error object. 2016-03-23 19:00:38 +00:00
l10n I18N: In get_translations_for_domain() check if the global $l10n was set by _load_textdomain_just_in_time() before accessing it. 2016-05-16 15:09:33 +00:00
link Permalinks: Make get_post_type_archive_link() work for the 'post' post type. 2016-01-08 22:00:48 +00:00
meta Remove tests related to wp_*_post_meta() functions. 2016-02-29 22:13:28 +00:00
multisite Tests: Account for flexible IDs in main network deletion test 2016-04-22 15:21:14 +00:00
oembed Embeds: Adjust the iframe title attribute for improved accessibility. 2016-03-07 09:59:02 +00:00
option Options: Do not set network options to autoload in single site 2016-04-16 19:47:14 +00:00
pomo mbstring.func_overload test should be skipped properly. 2016-02-29 22:37:42 +00:00
post Correct usage of @Covers for Tests_Post_Types 2016-05-18 17:13:11 +00:00
query Query: Discard non-scalar 'm' instead of attempting to sanitize. 2016-04-29 13:14:18 +00:00
rest-api REST API: Deliver parameters unadulterated instead of slashed. 2016-04-06 21:01:11 +00:00
rewrite Canonical / Query: Restore the is_404() check in wp_old_slug_redirect() which was removed in [34659]. 2016-03-23 21:53:44 +00:00
term Fix test related to cap check in get_edit_term_link(). 2016-03-14 01:51:12 +00:00
theme I18N: Remove the requirement to call load_plugin_textdomain() / load_theme_textdomain(). 2016-05-10 20:04:52 +00:00
user Users: The 'who' parameter should not interfere with 'meta_key' + 'meta_value' in WP_User_Query. 2016-05-04 18:56:58 +00:00
xmlrpc XMLRPC: Unit tests left off [r37043] 2016-03-22 15:11:06 +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 Authentication: Allow users to log in using their email address. 2016-02-22 23:14:27 +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 Fix License test 2016-03-05 20:21:23 +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 Canonical: Improve the method names and inline docs for canonical redirect tests. 2016-02-25 21:55:57 +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: Restrict the maximum characters for input fields within the comments template. 2016-01-13 01:24:46 +00:00
comment.php Tests: Introduce reset_phpmailer_instance() function. 2016-05-04 03:48:46 +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 WPDB: Reset connection status variables when the connection is closed. 2016-03-15 03:27:14 +00:00
dbdelta.php Tests: Add Tests_dbDelta::assertTableHasPrimaryKey(). 2016-02-17 18:54:27 +00:00
dependencies.php
file.php Tests: Merge the two different wp_normalize_path() tests. 2016-03-08 07:06:12 +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 Add tests for is_serialized_string(). 2016-05-04 03:29:47 +00:00
kses.php KSES: Allow the reversed attribute for <ol>. 2015-12-16 09:53:18 +00:00
l10n.php L10n: Add unit tests for _n_noop() and _nx_noop(). 2016-02-28 20:48:58 +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 tests for WP_Locale. 2016-01-13 23:49:52 +00:00
mail.php Tests: Introduce reset_phpmailer_instance() function. 2016-05-04 03:48:46 +00:00
media.php Media/Unit Tests: ensure that image sizes are indeed removed when errors are raised before assertions in Tests_Media. 2016-04-29 17:51:54 +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 Users: Deprecate the get_currentuserinfo() pluggable function. 2016-01-15 10:15:21 +00:00
post.php Taxonomy: Improve backward compatibility on the wp-admin/term.php page. 2016-03-07 12:55:04 +00:00
query.php WP_Query taxonomy query vars should be set to first of multiple taxonomies. 2016-02-06 03:57:33 +00:00
rest-api.php REST API: Unit test for OPTIONS request should call rest_send_allow_header 2016-03-03 11:37:48 +00:00
rewrite.php Rewrite Rules: Ensure url_to_postid() operates as expected when it's used in the context of another site within a Multisite network that uses mixed URL schemes. 2016-02-28 02:12:13 +00:00
shortcode.php Smilies: Move convert_smilies to happen later in the the_content filter. 2016-04-22 07:07:03 +00:00
taxonomy.php Introduce publicly_queryable taxonomy argument. 2016-02-13 03:50:37 +00:00
term.php Order terms by 'name' when populating object term cache. 2015-12-22 01:50:08 +00:00
theme.php Comments: Commit tests missed in [35848]. 2015-12-10 03:15:44 +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 Tests: Introduce reset_phpmailer_instance() function. 2016-05-04 03:48:46 +00:00
walker.php Add unit tests for Walker class. 2014-08-01 20:35:25 +00:00
widgets.php Widgets: Create WP_Widget_Mock as a mock of WP_Widget which can be used for widget tests. 2016-05-12 21:24:18 +00:00
wp.php Query: Add a WP::remove_query_var() helper function. 2016-01-05 20:56:10 +00:00