Skip to content

Commit 517fd51

Browse files
author
Oleksandr Dubovyk
committed
MC-18801: Wish List shows it has an item but is really empty
- fixed failed tests
1 parent d11afb1 commit 517fd51

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

app/code/Magento/Sales/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
<preference for="Magento\Sales\Api\RefundOrderInterface" type="Magento\Sales\Model\RefundOrder"/>
117117
<preference for="Magento\Sales\Api\RefundInvoiceInterface" type="Magento\Sales\Model\RefundInvoice"/>
118118
<preference for="Magento\Sales\Model\ResourceModel\Provider\NotSyncedDataProviderInterface" type="Magento\Sales\Model\ResourceModel\Provider\NotSyncedDataProvider" />
119-
<preference for="Magento\Sales\Model\ConfigInterface" type="Magento\Sales\Model\Config" />
120119
<type name="Magento\Sales\Model\ResourceModel\Provider\NotSyncedDataProvider">
121120
<arguments>
122121
<argument name="providers" xsi:type="array">

app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\CatalogInventory\Model\Stock;
1111
use Magento\Framework\App\ObjectManager;
1212
use Magento\Framework\EntityManager\MetadataPool;
13-
use Magento\Sales\Model\ConfigInterface;
13+
use Magento\Sales\Model\Config;
1414

1515
/**
1616
* Wishlist item collection
@@ -154,7 +154,7 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
154154
private $tableMaintainer;
155155

156156
/**
157-
* @var ConfigInterface
157+
* @var Config
158158
*/
159159
private $salesConfig;
160160

@@ -178,7 +178,7 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
178178
* @param \Magento\Framework\App\State $appState
179179
* @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
180180
* @param TableMaintainer|null $tableMaintainer
181-
* @param ConfigInterface|null $salesConfig
181+
* @param Config|null $salesConfig
182182
*
183183
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
184184
*/
@@ -202,7 +202,7 @@ public function __construct(
202202
\Magento\Framework\App\State $appState,
203203
\Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
204204
TableMaintainer $tableMaintainer = null,
205-
ConfigInterface $salesConfig = null
205+
Config $salesConfig = null
206206
) {
207207
$this->stockConfiguration = $stockConfiguration;
208208
$this->_adminhtmlSales = $adminhtmlSales;
@@ -218,7 +218,7 @@ public function __construct(
218218
$this->_appState = $appState;
219219
parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
220220
$this->tableMaintainer = $tableMaintainer ?: ObjectManager::getInstance()->get(TableMaintainer::class);
221-
$this->salesConfig = $salesConfig ?: ObjectManager::getInstance()->get(ConfigInterface::class);
221+
$this->salesConfig = $salesConfig ?: ObjectManager::getInstance()->get(Config::class);
222222
}
223223

224224
/**

0 commit comments

Comments
 (0)