Make WordPress Core


Ignore:
Timestamp:
06/10/2022 03:15:07 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Query: Some documentation and test improvements for update_post_author_caches():

  • Make the descriptions for update_post_author_caches() and update_post_caches() more specific.
  • Move the unit test into its own file, for consistency with update_post_cache() tests. This also allows for using shared fixtures in case more tests are added in the future.

Follow-up to [53482].

See #55716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/updatePostCache.php

    r53042 r53483  
    11<?php
    22/**
    3  * Test `wp_update_cache()`.
     3 * Test `update_post_cache()`.
    44 *
    55 * @package WordPress
     
    77
    88/**
    9  * Test class for `wp_update_cache()`.
     9 * Test class for `update_post_cache()`.
    1010 *
    1111 * @group post
     
    1919     * Post IDs from the shared fixture.
    2020     *
    21      * @var array
     21     * @var int[]
    2222     */
    2323    public static $post_ids;
Note: See TracChangeset for help on using the changeset viewer.