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/user/query.php

    r54889 r55562  
    187187
    188188    /**
    189      * @dataProvider orderby_should_convert_non_prefixed_keys_data
     189     * @dataProvider data_orderby_should_convert_non_prefixed_keys
    190190     */
    191191    public function test_orderby_should_convert_non_prefixed_keys( $short_key, $full_key ) {
     
    199199    }
    200200
    201     public function orderby_should_convert_non_prefixed_keys_data() {
     201    public function data_orderby_should_convert_non_prefixed_keys() {
    202202        return array(
    203203            array( 'nicename', 'user_nicename' ),
Note: See TracChangeset for help on using the changeset viewer.