wordpress-develop/tests/phpunit/tests/post
Peter Wilson ac0bae2359 Query: Cache post parent IDs in posts group.
Move the cache of post parent IDs from the dedicated group `post_parents` to `posts`. This maintains backward compatibility for clearing all post object related data by calling `wp_cache_flush_group( 'posts' )`.

Post parent IDs are now cached with with the prefix `post_parent:` in the `posts` group.

Follow up to [56763].

Props spacedmonkey, joemcgill, peterwilsoncc.
See #59188.


git-svn-id: https://develop.svn.wordpress.org/trunk@56925 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-12 23:39:05 +00:00
..
attachments.php Media: Revert WebP generation. 2022-09-19 22:51:53 +00:00
bodyClass.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
filtering.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
formats.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
getBodyClass.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
getLastPostDate.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
getLastPostModified.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
getPageByPath.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00
getPageByTitle.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
getPageChildren.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
getPages.php Tests: Reduce usage of assertEquals 2023-09-29 15:22:12 +00:00
getPageTemplateSlug.php Tests: Split the tests from post/template.php into individual test classes. 2023-03-24 17:10:44 +00:00
getPageUri.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
getPostClass.php Tests: Use the function get_num_queries across all unit tests. 2023-05-11 10:05:51 +00:00
getPostParent.php Tests: Split the tests from post/template.php into individual test classes. 2023-03-24 17:10:44 +00:00
getPosts.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPostsByAuthorSql.php Tests: Replace assertNotRegExp() with assertDoesNotMatchRegularExpression(). 2021-08-06 21:55:31 +00:00
getPostStatus.php Code Modernization: Replace strftime() and gmstrftime() usage in unit tests. 2021-08-09 19:08:09 +00:00
getPostTypeLabels.php Build/Test Tools: Update PHPUnit Polyfills to version 1.1.0. 2023-08-21 15:53:04 +00:00
getTheContent.php Tests: Replace assertContains() with assertStringContainsString() when used with strings. 2021-07-19 14:00:11 +00:00
getTheExcerpt.php Posts: Prevent an empty excerpt when groups and nested column blocks are present. 2021-07-06 15:31:48 +00:00
isPostPubliclyViewable.php Tests: Correctly use the factory method. 2022-09-06 22:03:10 +00:00
isPostStatusViewable.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
isPostTypeViewable.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
meta.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
metaRevisions.php Revisions: framework for storing post meta revisions. 2023-09-26 15:30:34 +00:00
nav-menu.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
objects.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
output.php Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:23:32 +00:00
pings.php Tests: Rename some files and classes in phpunit/tests/post/ per the naming conventions. 2020-10-27 16:07:21 +00:00
postClass.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
primePostCaches.php Query: Account for primed post caches without primed post meta/term caches. 2022-11-29 20:27:29 +00:00
primePostParentsCaches.php Query: Cache post parent IDs in posts group. 2023-10-12 23:39:05 +00:00
query.php Query: Use split queries in WP_Query if persistent object caching is enabled. 2023-09-05 12:21:27 +00:00
revisions.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
slashes.php Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
thumbnails.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
truncatePostSlug.php Posts, Post Types: Add test coverage for _truncate_post_slug(). 2023-02-03 04:03:00 +00:00
types.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
updatePostAuthorCaches.php Query: Some documentation and test improvements for update_post_author_caches(): 2022-06-10 15:15:07 +00:00
updatePostCache.php Build/Test Tools: Update PHPUnit Polyfills to version 1.1.0. 2023-08-21 15:53:04 +00:00
walkerPage.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
wpAfterInsertPost.php HTTP API: Fix request header inconsistencies. 2023-02-03 13:33:18 +00:00
wpCountAttachments.php Media: Add caching to wp_count_attachments(). 2022-09-20 14:20:57 +00:00
wpDropdownPages.php Tests: Move wp_dropdown_pages() tests to their own file. 2023-03-24 16:12:35 +00:00
wpGetAttachmentLink.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
wpGetPostParentId.php Posts, Post Types: Use global post as the default for wp_get_post_parent_id(). 2021-11-17 03:23:40 +00:00
wpInsertPost.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
wpLinkPages.php Tests: Split the tests from post/template.php into individual test classes. 2023-03-24 17:10:44 +00:00
wpListPages.php Tests: Add a @ticket reference for wp_list_pages() CSS classes test. 2023-03-24 15:05:29 +00:00
wpPost.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
wpPostType.php REST API: Fix issue with Template and Template Part Revision/Autosave REST API controllers. 2023-10-10 14:03:03 +00:00
wpPublishPost.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
wpTrashPost.php Posts, Post Types: Add a $previous_status parameter to wp_trash_post() related hooks. 2023-06-26 20:55:04 +00:00
wpUniquePostSlug.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
wpUntrashPost.php Posts, Post Types: Add a $previous_status parameter to wp_trash_post() related hooks. 2023-06-26 20:55:04 +00:00