wordpress-develop/tests/phpunit/tests
Sergey Biryukov 274bc8b0ec Tests: Reset current screen after setting it to dashboard in add_submenu_page() tests.
This avoids polluting other tests and allows the `ms-excluded` test group to successfully run on its own.

Props johnbillion, SergeyBiryukov.
See #52607.

git-svn-id: https://develop.svn.wordpress.org/trunk@50433 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-25 11:10:46 +00:00
..
actions Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
admin Tests: Reset current screen after setting it to dashboard in add_submenu_page() tests. 2021-02-25 11:10:46 +00:00
ajax Build/Test Tools: Run the Ajax test group for multisite. 2020-12-18 14:38:28 +00:00
attachment Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
blocks Editor: Additional tests for reusable blocks. 2021-02-18 01:11:18 +00:00
bookmark Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
canonical Canonical: Rename wp_force_plain_ugly_permalink() to match UI terminology. 2021-02-10 05:38:23 +00:00
category Menus: In Walker_Nav_Menu, Walker_Category, and Walker_Page, properly output link attributes having a legitimate "empty" value, for example an HTML data attribute with a value of zero (0). 2019-10-06 15:04:18 +00:00
comment Tests: Use @ticket annotation for ticket numbers, for clarity. 2021-02-13 12:17:36 +00:00
customize Robots: Introduce Robots API. 2021-01-21 01:35:16 +00:00
date Tests: Rename some classes in phpunit/tests/date/ per the naming conventions. 2021-02-11 21:20:41 +00:00
db Tests: Add missing @covers tags for files in phpunit/tests/db/. 2021-02-11 14:02:42 +00:00
dependencies Security: move Content-Security-Policy script loaders. 2021-02-23 01:58:21 +00:00
editor Tests: Simplify @covers tags in editor/wpEditors.php using @coversDefaultClass annotation. 2021-02-13 13:45:23 +00:00
error-protection Tests: Add missing @covers tags for files in phpunit/tests/error-protection/. 2021-02-11 20:53:19 +00:00
external-http Tests: Add missing @covers tags for files in phpunit/tests/external-http/. 2021-02-11 20:53:51 +00:00
feed Tests: Use @ticket annotation for ticket numbers, for clarity. 2021-02-13 12:17:36 +00:00
filesystem Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
formatting Tests: Use @ticket annotation for ticket numbers, for clarity. 2021-02-13 12:17:36 +00:00
functions Security: move Content-Security-Policy script loaders. 2021-02-23 01:58:21 +00:00
general Tests: Fix typo in one of wp_resource_hints() test method names. 2021-02-20 09:52:14 +00:00
hooks Tests: Rename classes in phpunit/tests/hooks/ per the naming conventions. 2021-02-14 12:20:34 +00:00
http Tests: Rename two classes in phpunit/tests/http/ to match the function names. 2021-02-15 14:05:42 +00:00
image Tests: Correct @ticket references in some test files. 2020-12-05 15:49:25 +00:00
import Tests: Use consistent trailing punctuation in fail() messages. 2020-09-22 12:32:39 +00:00
includes Tests: Consistently use the expectException() method instead of the older @expectedException annotation. 2020-09-18 13:22:22 +00:00
l10n Tests: Use @ticket annotation for ticket numbers, for clarity. 2021-02-13 12:17:36 +00:00
link Feeds: Fix the URL returned by get_feed_link() when pretty permalinks are not in use. 2021-02-16 17:32:58 +00:00
load Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:36:37 +00:00
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu General: Remove noreferrer from wp_targeted_link_rel() and other uses. 2020-10-19 23:37:53 +00:00
meta Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
multisite Multisite: Cache absolute dirsize paths to avoid PHP 8 fatal. 2020-12-03 20:37:43 +00:00
oembed Embeds: Allow posts with a public custom post status to be embedded. 2021-02-22 13:21:26 +00:00
option General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
pomo Tests: Simplify PluralFormsTest::test_exceptions(). 2020-09-18 14:11:11 +00:00
post Posts, Post Types: Rename the new post parent conditional tag functions for clarity. 2021-02-20 17:43:55 +00:00
privacy Privacy: Rename the $send_confirmation_email parameter of wp_create_user_request() to $status, for clarity. 2021-02-05 15:48:59 +00:00
query Tests: Correct @ticket references in tests/query/invalidQueries.php. 2020-12-23 15:04:54 +00:00
rest-api Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
rewrite Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
sitemaps Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term Taxonomy: Add filter for post statuses when updating term count. 2021-02-02 21:04:58 +00:00
theme Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
url Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
user Security, Site Health: Make migrating a site to HTTPS a one-click interaction. 2021-02-02 00:08:01 +00:00
widgets General: Remove noreferrer from wp_targeted_link_rel() and other uses. 2020-10-19 23:37:53 +00:00
xmlrpc XML-RPC: Emit an appropriate HTTP status code when an error is returned in response to an XML-RPC request. 2020-12-21 20:21:12 +00:00
actions.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
adminbar.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
auth.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
avatar.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
basic.php Build/Test Tools: Fix tests after [50185]. 2021-02-05 03:36:26 +00:00
cache.php Build/Test Tools: Don't mark the Tests_Cache::test_flush() test as risky when running the test suite with an object cache in place. 2020-12-21 17:49:20 +00:00
canonical.php Canonical: Support multiple post types in redirect_guess_404_permalink(). 2020-10-18 23:21:03 +00:00
category.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
comment-submission.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
comment.php Comments: Revert the introduction of the opt-in comment approval notification feature. 2021-02-17 13:06:43 +00:00
compat.php Tests: Consistently use the expectException() method instead of the older @expectedException annotation. 2020-09-18 13:22:22 +00:00
cron.php Cron API: Add a missing $wp_error parameter to the pre_reschedule_event filter. 2021-02-20 12:09:45 +00:00
db.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:25:10 +00:00
dbdelta.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
dependencies.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
file.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
filters.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
functions.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
https-detection.php Security: Fix bug in wp_is_local_html_output(). 2021-02-19 21:11:02 +00:00
https-migration.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
kses.php Build/Test Tools: Use dataProviders for some kses tests. 2020-11-25 04:49:04 +00:00
l10n.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
link.php Canonical: Prevent ID enumeration of private post slugs. 2021-02-02 00:38:40 +00:00
locale.php Tests: Fix the failure in test_get_weekday_undefined_index() on PHP 8. 2020-09-18 10:56:27 +00:00
mail.php Mail: Introduce a pre_wp_mail filter to allow short-circuiting the wp_mail() function without having to override the pluggable function. 2020-12-20 15:07:23 +00:00
media.php Canonical: Prevent ID enumeration of private post slugs. 2021-02-02 00:38:40 +00:00
meta.php Tests: Replace a few instances of assertNotEquals() with assertNotFalse(). 2020-09-07 04:11:54 +00:00
multisite.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
pluggable.php Cache API: Introduce wp_cache_get_multi(). 2020-06-09 19:45:27 +00:00
post.php Tests: Rename stick_post() and unstick_post() tests for a bit more clarity. 2021-02-18 12:02:42 +00:00
query.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-api.php General: Remove admin and login exceptions for https in get_home_url(). 2021-02-02 19:01:18 +00:00
rewrite.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
robots.php General: Add noindex robots meta tag to search results. 2021-02-16 23:36:44 +00:00
shortcode.php Tests: Update third-party video URLs in unit tests with more permanent videos. 2020-10-10 01:37:18 +00:00
site-health.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
taxonomy.php Taxonomy: Revert Light-weight/partial term counts. 2020-10-30 04:57:16 +00:00
template.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
term.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
theme.php Bundled Themes: Make Twenty Twenty-One the default theme. 2020-10-20 02:02:37 +00:00
upload.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
url.php General: Remove admin and login exceptions for https in get_home_url(). 2021-02-02 19:01:18 +00:00
user.php Tests: Correct @ticket references in some test files. 2020-12-05 15:49:25 +00:00
walker.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
widgets.php Widgets: Introduce before_sidebar and after_sidebar arguments for register_sidebar(). 2020-10-19 15:38:11 +00:00
wp.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00