- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-request-validation.php
r42343 r43571 14 14 public function test_validate_within_min_max_range_inclusive() { 15 15 $request = new WP_REST_Request( 16 'GET', '/wp/v2/foo', array( 16 'GET', 17 '/wp/v2/foo', 18 array( 17 19 'args' => array( 18 20 'minmaxrange' => array( … … 36 38 public function test_validate_within_min_max_range_min_exclusive() { 37 39 $request = new WP_REST_Request( 38 'GET', '/wp/v2/foo', array( 40 'GET', 41 '/wp/v2/foo', 42 array( 39 43 'args' => array( 40 44 'minmaxrange' => array( … … 63 67 public function test_validate_within_min_max_range_max_exclusive() { 64 68 $request = new WP_REST_Request( 65 'GET', '/wp/v2/foo', array( 69 'GET', 70 '/wp/v2/foo', 71 array( 66 72 'args' => array( 67 73 'minmaxrange' => array( … … 90 96 public function test_validate_within_min_max_range_both_exclusive() { 91 97 $request = new WP_REST_Request( 92 'GET', '/wp/v2/foo', array( 98 'GET', 99 '/wp/v2/foo', 100 array( 93 101 'args' => array( 94 102 'minmaxrange' => array( … … 118 126 public function test_validate_greater_than_min_inclusive() { 119 127 $request = new WP_REST_Request( 120 'GET', '/wp/v2/foo', array( 128 'GET', 129 '/wp/v2/foo', 130 array( 121 131 'args' => array( 122 132 'greaterthanmin' => array( … … 135 145 public function test_validate_greater_than_min_exclusive() { 136 146 $request = new WP_REST_Request( 137 'GET', '/wp/v2/foo', array( 147 'GET', 148 '/wp/v2/foo', 149 array( 138 150 'args' => array( 139 151 'greaterthanmin' => array( … … 155 167 public function test_validate_less_than_max_inclusive() { 156 168 $request = new WP_REST_Request( 157 'GET', '/wp/v2/foo', array( 169 'GET', 170 '/wp/v2/foo', 171 array( 158 172 'args' => array( 159 173 'lessthanmax' => array( … … 172 186 public function test_validate_less_than_max_exclusive() { 173 187 $request = new WP_REST_Request( 174 'GET', '/wp/v2/foo', array( 188 'GET', 189 '/wp/v2/foo', 190 array( 175 191 'args' => array( 176 192 'lessthanmax' => array(
Note: See TracChangeset
for help on using the changeset viewer.