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/post/wpUniquePostSlug.php

    r52010 r55562  
    129129
    130130    /**
    131      * @dataProvider allowed_post_statuses
     131     * @dataProvider data_allowed_post_statuses_should_not_be_forced_to_be_unique
    132132     */
    133133    public function test_allowed_post_statuses_should_not_be_forced_to_be_unique( $status ) {
     
    150150    }
    151151
    152     public function allowed_post_statuses() {
     152    public function data_allowed_post_statuses_should_not_be_forced_to_be_unique() {
    153153        return array(
    154154            array( 'draft' ),
Note: See TracChangeset for help on using the changeset viewer.