Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (2 years 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/formatting/humanTimeDiff.php

    r53562 r55562  
    1212     * @group formatting
    1313     * @ticket 38773
    14      * @dataProvider data_test_human_time_diff
     14     * @dataProvider data_human_time_diff
    1515     */
    1616    public function test_human_time_diff( $expected, $stopdate, $message ) {
     
    2020
    2121    // Data for test_human_time_diff.
    22     public function data_test_human_time_diff() {
     22    public function data_human_time_diff() {
    2323        return array(
    2424            array(
Note: See TracChangeset for help on using the changeset viewer.