Changeset 55562 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 03/19/2023 12:03:30 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r55457 r55562 50 50 } 51 51 52 public function filter_wp_rest_server_class() { 53 return 'Spy_REST_Server'; 54 } 55 52 56 public function test_envelope() { 53 57 $data = array( … … 1005 1009 1006 1010 /** 1007 * @dataProvider _dp_response_to_data_embedding1011 * @dataProvider data_response_to_data_embedding 1008 1012 */ 1009 1013 public function test_response_to_data_embedding( $expected, $embed ) { … … 1023 1027 } 1024 1028 1025 public function _dp_response_to_data_embedding() {1029 public function data_response_to_data_embedding() { 1026 1030 return array( 1027 1031 array( … … 1460 1464 $result = rest_get_server()->serve_request( '/test/data\\with\\slashes' ); 1461 1465 $this->assertSame( 'data\\with\\slashes', rest_get_server()->last_request->get_header( 'x_my_header' ) ); 1462 }1463 1464 public function filter_wp_rest_server_class() {1465 return 'Spy_REST_Server';1466 1466 } 1467 1467
Note: See TracChangeset
for help on using the changeset viewer.