Skip to content

Commit a9ba538

Browse files
committed
MAGETWO-56541: Integration test coverage
1 parent 7e91889 commit a9ba538

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
]
4646
);
4747
/** @var $tpExtensionAttributes */
48+
$tpExtensionAttributesFactory = $objectManager->create(ProductTierPriceExtensionFactory::class);
49+
$tpExtensionAttributes = $tpExtensionAttributesFactory->create()->setPercentageValue(50);
4850

4951
$tierPrices[] = $tierPriceFactory->create(
5052
[
@@ -53,7 +55,7 @@
5355
'qty' => 10
5456
]
5557
]
56-
);
58+
)->setExtensionAttributes($tpExtensionAttributes);
5759

5860
$tierPrices = [];
5961
/** @var \Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory $tierPriceFactory */
@@ -85,14 +87,18 @@
8587
]
8688
]
8789
);
90+
/** @var $tpExtensionAttributes */
91+
$tpExtensionAttributesFactory = $objectManager->create(ProductTierPriceExtensionFactory::class);
92+
$tpExtensionAttributes = $tpExtensionAttributesFactory->create()->setPercentageValue(50);
93+
8894
$tierPrices[] = $tierPriceFactory->create(
8995
[
9096
'data' => [
9197
'customer_group_id' => \Magento\Customer\Model\Group::NOT_LOGGED_IN_ID,
9298
'qty' => 10
9399
]
94100
]
95-
);
101+
)->setExtensionAttributes($tpExtensionAttributes);
96102

97103
/** @var $product \Magento\Catalog\Model\Product */
98104
$product = $objectManager->create(\Magento\Catalog\Model\Product::class);

0 commit comments

Comments
 (0)