From 39ff5d764533af2293d0f721518a228d45793045 Mon Sep 17 00:00:00 2001 From: RomanKis Date: Wed, 28 Mar 2018 10:42:39 +0300 Subject: [PATCH] MSI-633: Investigate possible exception with $this->getProductIdsBySkus->execute([$sku])[$sku] --- .../Test/_files/source_items_configurable.php | 6 ------ .../Test/_files/source_items_configurable_rollback.php | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable.php b/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable.php index 2af51efd6a911..ea640e8a32d60 100644 --- a/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable.php +++ b/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable.php @@ -19,12 +19,6 @@ $sourceItemsSave = Bootstrap::getObjectManager()->get(SourceItemsSaveInterface::class); $sourcesItemsData = [ - [ - SourceItemInterface::SOURCE_CODE => 'us-1', - SourceItemInterface::SKU => 'configurable', - SourceItemInterface::QUANTITY => 100, - SourceItemInterface::STATUS => SourceItemInterface::STATUS_IN_STOCK, - ], [ SourceItemInterface::SOURCE_CODE => 'us-1', SourceItemInterface::SKU => 'simple_10', diff --git a/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable_rollback.php b/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable_rollback.php index 9ae12ef95ebb0..de9c8f4651e19 100644 --- a/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable_rollback.php +++ b/app/code/Magento/InventoryConfigurableProduct/Test/_files/source_items_configurable_rollback.php @@ -20,14 +20,14 @@ $searchCriteria = $searchCriteriaBuilder->addFilter( SourceItemInterface::SKU, - ['configurable_out_of_stock', 'configurable', 'simple_10', 'simple_20', 'simple_30', 'simple_40'], + ['simple_10', 'simple_20'], 'in' )->create(); $sourceItems = $sourceItemRepository->getList($searchCriteria)->getItems(); /** * Tests which are wrapped with MySQL transaction clear all data by transaction rollback. - * In that case there is "if" which checks that SKU1, SKU2 and SKU3 still exists in database. + * In that case there is "if" which checks that simple_10 and simple_20 still exists in database. */ if (!empty($sourceItems)) { $sourceItemsDelete->execute($sourceItems);