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

    r53562 r55562  
    1212     * Data Provider
    1313     */
    14     public function data_test_values() {
     14    public function data_urlencode_deep() {
    1515        return array(
    1616            array( 'qwerty123456', 'qwerty123456' ),
     
    2525     * Validate the urlencode_deep function pair by pair
    2626     *
    27      * @dataProvider data_test_values
     27     * @dataProvider data_urlencode_deep
    2828     *
    2929     * @param string $actual
     
    3838     */
    3939    public function test_urlencode_deep_should_encode_all_values_in_array() {
    40         $data = $this->data_test_values();
     40        $data = $this->data_urlencode_deep();
    4141
    4242        $actual   = wp_list_pluck( $data, 0 );
Note: See TracChangeset for help on using the changeset viewer.