You appear to be a bot. Output may be restricted
Description
Simulates an HTTP response with valid location and event data.
Usage
$array = Tests_Admin_wpCommunityEvents::_http_request_valid_response();
Parameters
Returns
array A mock HTTP response with valid data.
Source
File name: wordpress-develop-tests/phpunit/tests/admin/wpCommunityEvents.php
Lines:
1 to 17 of 17
public function _http_request_valid_response() { return array( 'headers' => '', 'body' => wp_json_encode( array( 'location' => $this->get_user_location(), 'events' => $this->get_valid_events(), ) ), 'response' => array( 'code' => 200, ), 'cookies' => '', 'filename' => '', ); }