Make WordPress Core

Changeset 52048


Ignore:
Timestamp:
11/08/2021 05:07:49 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Remove the formatting group from wp_is_numeric_array() tests.

Similar to wp_array_slice_assoc() or other array-related functions, this appears to be a general-purpose function unrelated to the Formatting component.

Add missing public visibility keyword.

Follow-up to [52037].

See #53971.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/wpIsNumericArray.php

    r52037 r52048  
    22
    33/**
    4  * @group formatting
    54 * @group functions.php
    65 * @covers ::wp_is_numeric_array
    76 */
    8 class Tests_Functions_WpIsNumericArray extends WP_UnitTestCase {
     7class Tests_Functions_wpIsNumericArray extends WP_UnitTestCase {
    98
    109    /**
     
    1615     * @param array $expected Expected result.
    1716     */
    18     function test_wp_is_numeric_array( $input, $expected ) {
     17    public function test_wp_is_numeric_array( $input, $expected ) {
    1918        $this->assertSame( $expected, wp_is_numeric_array( $input ) );
    2019    }
Note: See TracChangeset for help on using the changeset viewer.