Skip to content

Commit 7e9af16

Browse files
author
Mike Weis
committed
MAGETWO-27267: Add getTierPrices() to the Product
-- updated per code review -- fix API functional test per new behavior
1 parent ffc1764 commit 7e9af16

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ public function getGroupPrice()
962962
/**
963963
* Gets list of product group prices
964964
*
965-
* @return \Magento\Catalog\Api\Data\ProductGroupPriceInterface[]
965+
* @return \Magento\Catalog\Api\Data\ProductGroupPriceInterface[]|null
966966
*/
967967
public function getGroupPrices()
968968
{
@@ -984,7 +984,7 @@ public function setGroupPrices(array $groupPrices = null)
984984
/**
985985
* Gets list of product tier prices
986986
*
987-
* @return \Magento\Catalog\Api\Data\ProductTierPriceInterface[]
987+
* @return \Magento\Catalog\Api\Data\ProductTierPriceInterface[]|null
988988
*/
989989
public function getTierPrices()
990990
{

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/ConfigurableProductManagementTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ public function testGetVariation()
6969
'attribute_code' => 'test_configurable',
7070
'value' => $attributeOptionValue
7171
]
72-
]
72+
],
73+
'group_prices' => [],
74+
'tier_prices' => []
7375
]
7476
];
7577
ksort($expectedItems);

0 commit comments

Comments
 (0)