Skip to content

Commit 8ca2a94

Browse files
committed
Truncate order tables correctly
1 parent f8e591e commit 8ca2a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Support/Helper/WooCommerce.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ public function wooCommerceDeleteAllOrders($I)
10641064
$I->dontHavePostInDatabase([ 'post_type' => 'shop_order' ]);
10651065

10661066
// Delete from wp_wc_orders and wp_wc_orders_meta HPOS tables.
1067-
$I->dontHaveInDatabase('wp_wc_orders', [ 'a' => 'a' ]);
1068-
$I->dontHaveInDatabase('wp_wc_orders_meta', [ 'a' => 'a' ]);
1067+
$I->dontHaveInDatabase('wp_wc_orders', []);
1068+
$I->dontHaveInDatabase('wp_wc_orders_meta', []);
10691069
}
10701070
}

0 commit comments

Comments
 (0)