Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (20 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/kses.php

    r55430 r55562  
    938938     * @ticket 55966
    939939     * @ticket 56122
    940      * @dataProvider data_test_safecss_filter_attr
     940     * @dataProvider data_safecss_filter_attr
    941941     *
    942942     * @param string $css      A string of CSS rules.
     
    957957     * }
    958958     */
    959     public function data_test_safecss_filter_attr() {
     959    public function data_safecss_filter_attr() {
    960960        return array(
    961961            // Empty input, empty output.
     
    15691569     * @ticket 37134
    15701570     *
    1571      * @dataProvider data_test_safecss_filter_attr_filtered
     1571     * @dataProvider data_safecss_filter_attr_filtered
    15721572     *
    15731573     * @param string $css      A string of CSS rules.
     
    15901590     * }
    15911591     */
    1592     public function data_test_safecss_filter_attr_filtered() {
     1592    public function data_safecss_filter_attr_filtered() {
    15931593        return array(
    15941594
Note: See TracChangeset for help on using the changeset viewer.