Commit 719f72611c8 for woocommerce
commit 719f72611c84a2eac7b083db9ea3c35888c36b54
Author: louwie17 <lourensschep@gmail.com>
Date: Wed Jul 1 12:22:27 2026 +0200
Fix sales report refund date test flake (#66152)
diff --git a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-report-sales-controller-tests.php b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-report-sales-controller-tests.php
index ccf01ea4201..39097203a75 100644
--- a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-report-sales-controller-tests.php
+++ b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-report-sales-controller-tests.php
@@ -131,7 +131,7 @@ class WC_REST_Report_Sales_Controller_Tests extends WC_REST_Unit_Test_Case {
)
);
- $data = $this->get_report( 'month' );
+ $data = $this->get_report( 'week' );
$today = current_datetime()->format( 'Y-m-d' );
$this->assertArrayHasKey( $yesterday, $data['totals'], 'Yesterday\'s bucket should exist in the response.' );