wordpress-develop/tests/phpunit/tests/admin
Peter Wilson 55db8c73a3 Posts, Post Types: Improve post_exists() query.
Add `$status` parameter to `post_exists()` to allow developers to specify a post type, date and status to ensure they hit the `wp_posts` table's `type_status_date` index when determining if a post exists.

Props apokalyptik, boonebgorges, brettshumaker, DrewAPicture, MikeHansenMe, peterwilsoncc, whyisjake.
Fixes #34012.



git-svn-id: https://develop.svn.wordpress.org/trunk@51027 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-26 02:16:01 +00:00
..
includesComment.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
includesCommunityEvents.php Community Events: Update timezone-related @since tags to 5.5.2. 2020-10-14 21:33:10 +00:00
includesFile.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
includesListTable.php Tests: Ignore EOL differences in WP_List_Table::get_bulk_items() test for optgroups. 2020-11-24 20:41:13 +00:00
includesMisc.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
includesPlugin.php Build/Test Tools: Increase the reliability of backing up the mu-plugins directory during tests. 2021-02-26 14:37:47 +00:00
includesPost.php Posts, Post Types: Improve post_exists() query. 2021-05-26 02:16:01 +00:00
includesSchema.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
includesScreen.php Build/Test Tools: Fix and standardise calls to the setUp() and setUpBeforeClass() methods in the test suite. 2021-02-27 16:54:52 +00:00
includesTemplate.php Docs: Correct comments in test_wp_add_dashboard_widget() per the documentation standards. 2020-10-11 02:35:32 +00:00
includesTheme.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
includesUser.php REST API: Introduce Application Passwords for API authentication. 2020-10-08 22:12:02 +00:00
wpPrivacyRequestsTable.php Tests: Rename classes in phpunit/tests/privacy/ per the naming conventions. 2021-05-24 13:37:56 +00:00