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/term/wpGenerateTagCloud.php

    r53687 r55562  
    99     * Testing when passed $tags array is empty
    1010     *
    11      * @dataProvider empty_tags_data_provider
     11     * @dataProvider data_empty_tags
    1212     *
    1313     * @param $expected Expected output from `wp_generate_tag_cloud()`.
     
    2222     * Testing when no tags are found
    2323     *
    24      * @dataProvider empty_tags_data_provider
     24     * @dataProvider data_empty_tags
    2525     *
    2626     * @param $expected Expected output from `wp_generate_tag_cloud()`.
     
    4242     * @return array
    4343     */
    44     public function empty_tags_data_provider() {
     44    public function data_empty_tags() {
    4545        return array(
    4646            // When 'format' => 'array', we should be getting an empty array back.
Note: See TracChangeset for help on using the changeset viewer.