Make WordPress Core


Ignore:
Timestamp:
06/15/2022 02:07:24 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Some improvements for REST API cache priming tests:

  • Give the test methods more specific names and move them closer together.
  • Correct the @covers tags.

Follow-up to [53499], [53504], [53506], [53507], [53508].

See #55593, #55652.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/nav-menu.php

    r53508 r53509  
    205205    /**
    206206     * @ticket 55620
    207      * @covers update_menu_item_cache
    208      */
    209     public function test_update_menu_item_cache_primed_posts() {
     207     * @covers ::update_menu_item_cache
     208     */
     209    public function test_update_menu_item_cache_primes_posts() {
    210210        $post_id = self::factory()->post->create();
    211211        wp_update_nav_menu_item(
     
    236236    /**
    237237     * @ticket 55620
    238      * @covers update_menu_item_cache
    239      */
    240     public function test_update_menu_item_cache_primed_terms() {
     238     * @covers ::update_menu_item_cache
     239     */
     240    public function test_update_menu_item_cache_primes_terms() {
    241241        register_taxonomy( 'wptests_tax', 'post', array( 'hierarchical' => true ) );
    242242        $term_id = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax' ) );
Note: See TracChangeset for help on using the changeset viewer.