From 79628e89e41be8e6b3b2eff5babaa380b8600d83 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Fri, 3 May 2024 09:00:24 +0200 Subject: [PATCH] Update WebhookControllerTest.php --- tests/src/WebhookControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/WebhookControllerTest.php b/tests/src/WebhookControllerTest.php index aac0f3a..fe881b5 100644 --- a/tests/src/WebhookControllerTest.php +++ b/tests/src/WebhookControllerTest.php @@ -152,6 +152,11 @@ public function test_webhook( $response_file, $payment_status, $transaction_id ) */ $this->assertEquals( $payment_status, $payment->get_status() ); $this->assertEquals( $transaction_id, $payment->get_transaction_id() ); + + /** + * Cleanup. + */ + \wp_delete_post( $payment->get_id(), true ); } /**