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

    r54230 r55562  
    204204     * @ticket 25768
    205205     *
    206      * @dataProvider dst_times
     206     * @dataProvider data_should_handle_dst
    207207     *
    208208     * @param string $time     Time to test in Y-m-d H:i:s format.
     
    220220    }
    221221
    222     public function dst_times() {
     222    public function data_should_handle_dst() {
    223223        return array(
    224224            'Before DST start' => array( '2019-03-31 02:59:00', 'Europe/Helsinki' ),
Note: See TracChangeset for help on using the changeset viewer.