Changeset 56559 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 09/12/2023 03:21:02 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r56421 r56559 938 938 */ 939 939 public function test_link_embedding_returning_wp_error() { 940 $return_wp_error = static function () {940 $return_wp_error = static function () { 941 941 return new WP_Error( 'some-error', 'This is not valid!' ); 942 942 }; … … 1672 1672 array( 1673 1673 'methods' => array( 'GET' ), 1674 'callback' => static function () {1674 'callback' => static function () { 1675 1675 return new WP_REST_Response( 'data', 204 ); 1676 1676 }, … … 1683 1683 array( 1684 1684 'methods' => array( 'GET' ), 1685 'callback' => static function () {1685 'callback' => static function () { 1686 1686 return new WP_REST_Response( 'data', 204 ); 1687 1687 }, … … 2081 2081 add_filter( 2082 2082 'rest_get_max_batch_size', 2083 static function () {2083 static function () { 2084 2084 return 5; 2085 2085 } … … 2189 2189 array( 2190 2190 'methods' => \WP_REST_Server::READABLE, 2191 'callback' => static function () {2191 'callback' => static function () { 2192 2192 return new \WP_REST_Response( INF ); 2193 2193 },
Note: See TracChangeset
for help on using the changeset viewer.