Make WordPress Core


Ignore:
Timestamp:
03/03/2021 07:24:44 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update documentation in some WP_REST_Request tests per the documentation standards.

Follow-up to [49329].

See #52628.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-request.php

    r50284 r50484  
    8484         * @dataProvider content_type_provider
    8585         *
    86          * @param string $header Header value.
    87          * @param string $value Full type value.
    88          * @param string $type Main type (application, text, etc).
    89          * @param string $subtype Subtype (json, etc).
     86         * @param string $header     Header value.
     87         * @param string $value      Full type value.
     88         * @param string $type       Main type (application, text, etc).
     89         * @param string $subtype    Subtype (json, etc).
    9090         * @param string $parameters Parameters (charset=utf-8, etc).
    9191         */
     
    194194         * @dataProvider alternate_json_content_type_provider
    195195         *
    196          * @param string  $content_type The content-type
    197          * @param string  $source The source value.
    198          * @param boolean $accept_json The accept_json value.
     196         * @param string $content_type The content-type header.
     197         * @param string $source      The source value.
     198         * @param bool   $accept_json The accept_json value.
    199199         */
    200200        public function test_alternate_json_content_type( $content_type, $source, $accept_json ) {
     
    225225         * @dataProvider is_json_content_type_provider
    226226         *
    227          * @param string  $content_type The content-type
    228          * @param boolean $is_json The is_json value.
     227         * @param string $content_type The content-type header.
     228         * @param bool   $is_json      The is_json value.
    229229         */
    230230        public function test_is_json_content_type( $content_type, $is_json ) {
Note: See TracChangeset for help on using the changeset viewer.