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/wpListSort.php

    r55078 r55562  
    1010
    1111    /**
    12      * @dataProvider data_test_wp_list_sort
     12     * @dataProvider data_wp_list_sort
    1313     *
    1414     * @param string|array $orderby Either the field name to order by or an array
     
    2020    }
    2121
    22     public function data_test_wp_list_sort() {
     22    public function data_wp_list_sort() {
    2323        return array(
    2424            'single orderby ascending'        => array(
     
    335335
    336336    /**
    337      * @dataProvider data_test_wp_list_sort_preserve_keys
     337     * @dataProvider data_wp_list_sort_preserve_keys
    338338     *
    339339     * @param string|array $orderby Either the field name to order by or an array
     
    345345    }
    346346
    347     public function data_test_wp_list_sort_preserve_keys() {
     347    public function data_wp_list_sort_preserve_keys() {
    348348        return array(
    349349            'single orderby ascending'        => array(
Note: See TracChangeset for help on using the changeset viewer.