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/admin/includesTemplate.php

    r53371 r55562  
    223223     * @covers ::settings_errors
    224224     * @global array $wp_settings_errors
    225      * @dataProvider settings_errors_css_classes_provider
     225     * @dataProvider data_settings_errors_css_classes
    226226     */
    227227    public function test_settings_errors_css_classes( $type, $expected ) {
     
    242242    }
    243243
    244     public function settings_errors_css_classes_provider() {
     244    public function data_settings_errors_css_classes() {
    245245        return array(
    246246            array( 'error', 'notice-error' ),
Note: See TracChangeset for help on using the changeset viewer.