You appear to be a bot. Output may be restricted
Description
Test: get_events() should return an instance of WP_Error if the response code is not 200.
Usage
Tests_Admin_wpCommunityEvents::test_get_events_bad_response_code();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/wpCommunityEvents.php
Lines:
1 to 8 of 8
public function test_get_events_bad_response_code() { add_filter( 'pre_http_request', array( $this, '_http_request_bad_response_code' ) ); $this->assertWPError( $this->instance->get_events() ); remove_filter( 'pre_http_request', array( $this, '_http_request_bad_response_code' ) ); }