public function test_handle_request_get_all__not_logged_in() { $this->new_model_obj_with_dependencies('Registration'); $response = Read::handle_request_get_all(new \WP_REST_Request('GET', \EED_Core_Rest_Api::ee_api_namespace . '4.8.29/registrations')); $this->assertInstanceOf('WP_REST_Response', $response); $this->assertEquals(403, $response->get_status()); }