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

    r55076 r55562  
    1010
    1111    /**
    12      * @dataProvider data_test_wp_list_filter
     12     * @dataProvider data_wp_list_filter
    1313     *
    1414     * @param array  $input_list An array of objects to filter.
     
    2222    }
    2323
    24     public function data_test_wp_list_filter() {
     24    public function data_wp_list_filter() {
    2525        return array(
    2626            'string instead of array'  => array(
Note: See TracChangeset for help on using the changeset viewer.