Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (21 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/functions/getStatusHeaderDesc.php

    r52773 r55562  
    1212
    1313    /**
    14      * @dataProvider _status_strings
     14     * @dataProvider data_get_status_header_desc
    1515     *
    1616     * @param int    $code     HTTP status code.
     
    2626     * @return array
    2727     */
    28     public function _status_strings() {
     28    public function data_get_status_header_desc() {
    2929        return array(
    3030            array( 200, 'OK' ),
Note: See TracChangeset for help on using the changeset viewer.