You appear to be a bot. Output may be restricted
Description
Test: get_events() should return an instance of WP_Error if the response body does not have the required properties.
Usage
Tests_Admin_wpCommunityEvents::test_get_events_invalid_response();
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_invalid_response() { add_filter( 'pre_http_request', array( $this, '_http_request_invalid_response' ) ); $this->assertWPError( $this->instance->get_events() ); remove_filter( 'pre_http_request', array( $this, '_http_request_invalid_response' ) ); }