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/formatting/ent2ncr.php

    r53562 r55562  
    88class Tests_Formatting_Ent2ncr extends WP_UnitTestCase {
    99    /**
    10      * @dataProvider entities
     10     * @dataProvider data_entities
    1111     */
    1212    public function test_converts_named_entities_to_numeric_character_references( $entity, $ncr ) {
     
    2020     * Comments start with "###".
    2121     */
    22     public function entities() {
     22    public function data_entities() {
    2323        $entities      = file( DIR_TESTDATA . '/formatting/entities.txt' );
    2424        $data_provided = array();
Note: See TracChangeset for help on using the changeset viewer.