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/rest-api/rest-comments-controller.php

    r55457 r55562  
    11451145    }
    11461146
    1147     public function comment_dates_provider() {
     1147    public function data_comment_dates() {
    11481148        return array(
    11491149            'set date without timezone'     => array(
     
    11911191
    11921192    /**
    1193      * @dataProvider comment_dates_provider
     1193     * @dataProvider data_comment_dates
    11941194     */
    11951195    public function test_create_comment_date( $params, $results ) {
     
    23392339
    23402340    /**
    2341      * @dataProvider comment_dates_provider
     2341     * @dataProvider data_comment_dates
    23422342     */
    23432343    public function test_update_comment_date( $params, $results ) {
Note: See TracChangeset for help on using the changeset viewer.