diff --git a/tests/admin/test-class-wc-rest-payments-webhook.php b/tests/admin/test-class-wc-rest-payments-webhook.php index c05445950a9..d32f19be7cb 100644 --- a/tests/admin/test-class-wc-rest-payments-webhook.php +++ b/tests/admin/test-class-wc-rest-payments-webhook.php @@ -115,7 +115,7 @@ public function test_webhook_with_no_type_property() { */ public function test_webhook_with_no_object_property() { // Setup test request data. - $this->request_body['type'] = 'unknown.webhook.event'; + $this->request_body['type'] = 'charge.refund.updated'; unset( $this->request_body['data']['object'] ); $this->request->set_body( wp_json_encode( $this->request_body ) ); @@ -130,11 +130,11 @@ public function test_webhook_with_no_object_property() { } /** - * Test a webhook with no object property. + * Test a webhook with no data property. */ public function test_webhook_with_no_data_property() { // Setup test request data. - $this->request_body['type'] = 'unknown.webhook.event'; + $this->request_body['type'] = 'charge.refund.updated'; unset( $this->request_body['data'] ); $this->request->set_body( wp_json_encode( $this->request_body ) );