You appear to be a bot. Output may be restricted
Description
Simulates an HTTP response with a non-200 response code.
Usage
$array = Tests_Admin_wpCommunityEvents::_http_request_bad_response_code();
Parameters
Returns
array A mock response with a 404 HTTP status code
Source
File name: wordpress-develop-tests/phpunit/tests/admin/wpCommunityEvents.php
Lines:
1 to 12 of 12
public function _http_request_bad_response_code() { return array( 'headers' => '', 'body' => '', 'response' => array( 'code' => 404, ), 'cookies' => '', 'filename' => '', ); }