diff --git a/plugins/woocommerce/tests/php/src/Blocks/BlockTypes/ProductCollection.php b/plugins/woocommerce/tests/php/src/Blocks/BlockTypes/ProductCollection.php index 77946863ff1..6430a680b1f 100644 --- a/plugins/woocommerce/tests/php/src/Blocks/BlockTypes/ProductCollection.php +++ b/plugins/woocommerce/tests/php/src/Blocks/BlockTypes/ProductCollection.php @@ -1114,10 +1114,13 @@ class ProductCollection extends \WP_UnitTestCase { $request->set_param( 'productCollectionQueryContext', array( - 'collection' => 'test-collection', - 'previewState' => array( - 'isPreview' => 'true', - ), + 'collection' => 'test-collection', + ) + ); + $request->set_param( + 'previewState', + array( + 'isPreview' => 'true', ) );