diff --git a/tests/unit-tests/caches.php b/tests/unit-tests/caches.php index 8cf3ac3b..7d2627c6 100644 --- a/tests/unit-tests/caches.php +++ b/tests/unit-tests/caches.php @@ -18,6 +18,8 @@ function test_temp_disable() { } function test_shipment_order_cache() { + update_option( 'woocommerce_custom_orders_table_enabled', 'yes' ); + $shipment = ShipmentHelper::create_simple_shipment(); $order = wc_get_order( $shipment->get_order_id() );