- Timestamp:
- 01/05/2023 10:21:19 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php
r54059 r55029 1097 1097 * @return array faux/mocked response. 1098 1098 */ 1099 public function mock_success_request_to_remote_url( $response, $ args ) {1100 return $this->mock_request_to_remote_url( 'success', $ args );1101 } 1102 1103 public function mock_failed_request_to_remote_url( $response, $ args ) {1104 return $this->mock_request_to_remote_url( 'failure', $ args );1105 } 1106 1107 public function mock_request_to_remote_url_with_empty_body_response( $response, $ args ) {1108 return $this->mock_request_to_remote_url( 'empty_body', $ args );1109 } 1110 1111 private function mock_request_to_remote_url( $result_type, $ args ) {1112 $this->request_args = $ args;1099 public function mock_success_request_to_remote_url( $response, $parsed_args ) { 1100 return $this->mock_request_to_remote_url( 'success', $parsed_args ); 1101 } 1102 1103 public function mock_failed_request_to_remote_url( $response, $parsed_args ) { 1104 return $this->mock_request_to_remote_url( 'failure', $parsed_args ); 1105 } 1106 1107 public function mock_request_to_remote_url_with_empty_body_response( $response, $parsed_args ) { 1108 return $this->mock_request_to_remote_url( 'empty_body', $parsed_args ); 1109 } 1110 1111 private function mock_request_to_remote_url( $result_type, $parsed_args ) { 1112 $this->request_args = $parsed_args; 1113 1113 1114 1114 $types = array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)