Changeset 51657 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r51577 r51657 1393 1393 array( 1394 1394 'methods' => array( 'GET' ), 1395 'callback' => function () {1395 'callback' => static function () { 1396 1396 return new WP_REST_Response(); 1397 1397 }, … … 1415 1415 array( 1416 1416 'methods' => array( 'GET' ), 1417 'callback' => function () {1417 'callback' => static function () { 1418 1418 return new WP_REST_Response( 'data', 204 ); 1419 1419 }, … … 1506 1506 array( 1507 1507 'methods' => array( 'GET' ), 1508 'callback' => function() {1508 'callback' => static function() { 1509 1509 return new WP_REST_Response( 'data', 204 ); 1510 1510 }, … … 1517 1517 array( 1518 1518 'methods' => array( 'GET' ), 1519 'callback' => function() {1519 'callback' => static function() { 1520 1520 return new WP_REST_Response( 'data', 204 ); 1521 1521 }, … … 1929 1929 array( 1930 1930 'methods' => array( 'POST', 'DELETE' ), 1931 'callback' => function ( WP_REST_Request $request ) {1931 'callback' => static function ( WP_REST_Request $request ) { 1932 1932 return new WP_REST_Response( 'test' ); 1933 1933 },
Note: See TracChangeset
for help on using the changeset viewer.