Skip to content

Commit

Permalink
Fix WC_REST_Payments_Webhook_Controller unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vbelolapotkov committed Apr 27, 2020
1 parent a653bd7 commit 30fd86e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/admin/test-class-wc-rest-payments-webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );

Expand All @@ -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 ) );

Expand Down

0 comments on commit 30fd86e

Please sign in to comment.