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

    r55465 r55562  
    532532     * @ticket 41782
    533533     *
    534      * @dataProvider mysql_datetime_input_provider
     534     * @dataProvider data_build_mysql_datetime
    535535     *
    536536     * @param array|string $datetime       Array or string date input.
     
    547547    }
    548548
    549     public function mysql_datetime_input_provider() {
     549    public function data_build_mysql_datetime() {
    550550        return array(
    551551            array( '2019-06-04T08:18:24+03:00', '2019-06-04 05:18:24' ),
     
    565565     * @ticket 41782
    566566     *
    567      * @dataProvider mysql_datetime_input_provider_custom_timezone
     567     * @dataProvider data_build_mysql_datetime_with_custom_timezone
    568568     *
    569569     * @param array|string $datetime       Array or string date input.
     
    583583    }
    584584
    585     public function mysql_datetime_input_provider_custom_timezone() {
     585    public function data_build_mysql_datetime_with_custom_timezone() {
    586586        return array(
    587587            array( '2019-06-04T08:18:24+03:00', '2019-06-04 08:18:24' ),
Note: See TracChangeset for help on using the changeset viewer.