Make WordPress Core

Changeset 64401


Ignore:
Timestamp:
10/16/2026 05:01:58 PM (7 hours ago)
Author:
lancewillett
Message:

Tests: Trim repeated metadata lazy-loader test cases.

Remove the empty-string and empty-array datasets from data_check_values(). Retain null, false, and a nonempty value to cover cache priming and unchanged pass-through values in WP_Metadata_Lazyloader::lazyload_meta_callback().

Follow-up to [64377].

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/14318

Props huzaifaalmesbah.
See #65819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/meta/wpMetadataLazyloader.php

    r64377 r64401  
    208208        public static function data_check_values() {
    209209                return array(
    210                         'null'         => array( null ),
    211                         'false'        => array( false ),
    212                         'empty string' => array( '' ),
    213                         'empty array'  => array( array() ),
    214                         'value'        => array( array( 'short-circuited' ) ),
     210                        'null'  => array( null ),
     211                        'false' => array( false ),
     212                        'value' => array( array( 'short-circuited' ) ),
    215213                );
    216214        }
Note: See TracChangeset for help on using the changeset viewer.