@@ -105,6 +105,35 @@ public function testIsAvailableWithoutProductsIntersection()
105
105
$ this ->assertFalse ($ this ->isInStorePickupAvailable ->execute ((int )$ cart ->getId ()));
106
106
}
107
107
108
+ /**
109
+ * @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
110
+ * @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
111
+ * @magentoDataFixture Magento_InventoryInStorePickupApi::Test/_files/source_addresses.php
112
+ * @magentoDataFixture Magento_InventoryInStorePickupApi::Test/_files/source_pickup_location_attributes.php
113
+ * @magentoDataFixture Magento_InventoryApi::Test/_files/stocks.php
114
+ * @magentoDataFixture Magento_InventoryApi::Test/_files/stock_source_links.php
115
+ * @magentoDataFixture Magento_InventorySalesApi::Test/_files/websites_with_stores.php
116
+ * @magentoDataFixture Magento_InventorySalesApi::Test/_files/stock_website_sales_channels.php
117
+ * @magentoDataFixture Magento_InventoryApi::Test/_files/source_items_eu_stock_only.php
118
+ * @magentoDataFixture Magento_InventoryIndexer::Test/_files/reindex_inventory.php
119
+ * @magentoDataFixture Magento_InventoryInStorePickupSalesApi::Test/_files/create_in_store_pickup_quote_on_eu_website_guest.php
120
+ *
121
+ * @magentoConfigFixture store_for_eu_website_store carriers/instore/active 1
122
+ *
123
+ * @magentoDbIsolation disabled
124
+ */
125
+ public function testIsAvailableWithoutProductsIntersectionEmptyShippingAssignments ()
126
+ {
127
+ $ searchCriteria = $ this ->searchCriteriaBuilder
128
+ ->addFilter ('reserved_order_id ' , 'in_store_pickup_test_order ' )
129
+ ->create ();
130
+ /** @var CartInterface $cart */
131
+ $ cart = current ($ this ->cartRepository ->getList ($ searchCriteria )->getItems ());
132
+ $ cart ->getExtensionAttributes ()->setShippingAssignments ([]);
133
+ $ this ->cartRepository ->save ($ cart );
134
+ $ this ->assertFalse ($ this ->isInStorePickupAvailable ->execute ((int )$ cart ->getId ()));
135
+ }
136
+
108
137
/**
109
138
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
110
139
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
0 commit comments