Skip to content

Commit 9f0d54e

Browse files
author
Gurzhyi, Andrii
committed
MAGETWO-48227: Fix API/Integration tests
- Fixed collection for configurable product
1 parent dba5e9c commit 9f0d54e

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Type/Configurable/Product

1 file changed

+3
-0
lines changed

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Type/Configurable/Product/Collection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
5050
* @param \Magento\Customer\Model\Session $customerSession
5151
* @param \Magento\Framework\Stdlib\DateTime $dateTime
5252
* @param GroupManagementInterface $groupManagement
53+
* @param \Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitation $productLimitation
5354
* @param MetadataPool $metadataPool
5455
* @param \Magento\Framework\DB\Adapter\AdapterInterface|null $connection
5556
*
@@ -75,6 +76,7 @@ public function __construct(
7576
\Magento\Customer\Model\Session $customerSession,
7677
\Magento\Framework\Stdlib\DateTime $dateTime,
7778
GroupManagementInterface $groupManagement,
79+
\Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitation $productLimitation,
7880
MetadataPool $metadataPool,
7981
\Magento\Framework\DB\Adapter\AdapterInterface $connection = null
8082
) {
@@ -99,6 +101,7 @@ public function __construct(
99101
$customerSession,
100102
$dateTime,
101103
$groupManagement,
104+
$productLimitation,
102105
$connection
103106
);
104107
}

0 commit comments

Comments
 (0)