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

    r55151 r55562  
    579579     * @param int|string         $column      The column index to retrieve.
    580580     *
    581      * @dataProvider data_test_get_col
     581     * @dataProvider data_get_col
    582582     *
    583583     * @ticket 45299
     
    613613     *     @type int|string         $column      The column index to retrieve.
    614614     */
    615     public function data_test_get_col() {
     615    public function data_get_col() {
    616616        global $wpdb;
    617617
     
    22402240
    22412241    /**
    2242      * @dataProvider parse_db_host_data_provider
     2242     * @dataProvider data_parse_db_host
    22432243     * @ticket 41722
    22442244     * @ticket 54877
     
    22612261    }
    22622262
    2263     public function parse_db_host_data_provider() {
     2263    public function data_parse_db_host() {
    22642264        return array(
    22652265            array(
Note: See TracChangeset for help on using the changeset viewer.