WordPress.org

Make WordPress Core

Ticket #39933: 0004-blegh-add-a-phpdoc-comment-over-data-provider-just-e.patch

File 0004-blegh-add-a-phpdoc-comment-over-data-provider-just-e.patch, 1.1 KB (added by mnelson4, 4 years ago)

adds a PHPdoc to the data provider method which I forgot in the previous commit

  • tests/phpunit/tests/rest-api/rest-request.php

    From 5410a96e9c85dec29308dea6308f86aea36fd3b8 Mon Sep 17 00:00:00 2001
    From: Mike Nelson <michael@eventespresso.com>
    Date: Wed, 22 Feb 2017 21:01:10 -0800
    Subject: [PATCH 4/4] blegh, add a phpdoc comment over data provider just
     explaining how it all works
    
    ---
     tests/phpunit/tests/rest-api/rest-request.php | 6 ++++++
     1 file changed, 6 insertions(+)
    
    diff --git a/tests/phpunit/tests/rest-api/rest-request.php b/tests/phpunit/tests/rest-api/rest-request.php
    index 41441eb..97d75e7 100644
    a b class Tests_REST_Request extends WP_UnitTestCase { 
    203203                $this->assertEmpty( $this->request->get_param( 'has_json_params' ) );
    204204        }
    205205
     206        /**
     207         * Data provider for test_body_parameters and any other tests which need to
     208         * work with all the HTTP methods which support body BESIDES POST. These HTTP methods
     209         * are handled differently than post requests and so need separate testing.
     210         * @return array
     211         */
    206212        public function other_methods_with_request_body(){
    207213                return array(
    208214                        array( 'PUT' ),