Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (22 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use the data_ prefix for various data provider methods.

This aims to bring more consistency to the test suite, as the vast majority of data providers already use that prefix.

Includes moving some data providers next to the tests they are used in.

Follow-up to [55464].

See #57841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php

    r55457 r55562  
    20542054     * @ticket 43392
    20552055     * @ticket 48363
    2056      * @dataProvider _dp_meta_values_are_not_set_to_null_in_response_if_type_safely_serializable
     2056     * @dataProvider data_meta_values_are_not_set_to_null_in_response_if_type_safely_serializable
    20572057     */
    20582058    public function test_meta_values_are_not_set_to_null_in_response_if_type_safely_serializable( $type, $stored, $expected ) {
     
    20752075    }
    20762076
    2077     public function _dp_meta_values_are_not_set_to_null_in_response_if_type_safely_serializable() {
     2077    public function data_meta_values_are_not_set_to_null_in_response_if_type_safely_serializable() {
    20782078        return array(
    20792079            array( 'boolean', 'true', true ),
Note: See TracChangeset for help on using the changeset viewer.