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 { |
203 | 203 | $this->assertEmpty( $this->request->get_param( 'has_json_params' ) ); |
204 | 204 | } |
205 | 205 | |
| 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 | */ |
206 | 212 | public function other_methods_with_request_body(){ |
207 | 213 | return array( |
208 | 214 | array( 'PUT' ), |