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

    r54855 r55562  
    1313class Tests_Functions_SizeFormat extends WP_UnitTestCase {
    1414
    15     public function _data_size_format() {
     15    public function data_size_format() {
    1616        return array(
    1717            // Invalid values.
     
    7373
    7474    /**
    75      * @dataProvider _data_size_format
     75     * @dataProvider data_size_format
    7676     *
    7777     * @param $bytes
Note: See TracChangeset for help on using the changeset viewer.