Make WordPress Core

Changeset 52776


Ignore:
Timestamp:
02/19/2022 01:00:04 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve some DocBlocks in wp_validate_boolean() tests for consistency.

Follow-up to [46159], [46224], [52775].

See #54725, #54729.

File:
1 edited

Legend:

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

    r52775 r52776  
    22
    33/**
    4  * Tests the wp_validate_boolean function.
     4 * Tests for the wp_validate_boolean() function.
    55 *
    66 * @group functions.php
     
    1212     * Test wp_validate_boolean().
    1313     *
    14      * @dataProvider data_provider
    15      *
    16      * @param mixed $test_value
    17      * @param bool $expected
     14     * @dataProvider data_wp_validate_boolean
    1815     *
    1916     * @ticket 30238
    2017     * @ticket 39868
     18     *
     19     * @param mixed $test_value
     20     * @param bool  $expected
    2121     */
    2222    public function test_wp_validate_boolean( $test_value, $expected ) {
     
    2525
    2626    /**
    27      * Provides test scenarios for all possible scenarios in wp_validate_boolean().
     27     * Data provider for test_wp_validate_boolean().
    2828     *
    29      * @return array
     29     * @return array[] Test parameters {
     30     *     @type string $test_value Test value.
     31     *     @type string $expected   Expected return value.
     32     * }
    3033     */
    31     public function data_provider() {
     34    public function data_wp_validate_boolean() {
    3235            $std = new \stdClass();
    3336
Note: See TracChangeset for help on using the changeset viewer.