Skip to content

Commit 9c1251f

Browse files
author
Andrii Lugovyi
committed
MAGETWO-36828: Api service should not return custom attribute for catalog inventory
- fix static
1 parent 0c261a6 commit 9c1251f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dev/tests/api-functional/testsuite/Magento/CatalogInventory/Api/ProductRepositoryInterfaceTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testCatalogInventory()
7070
$returnedQty = $stockItemData[self::KEY_QTY];
7171
$this->assertEquals($qty, $returnedQty, 'UPDATE 1: Expected qty to be same: ' . $qty .', '. $returnedQty);
7272

73-
$customAttributeQty = $this->findCustomAttributeQty($response[self::KEY_CUSTOM_ATTRIBUTES]);
73+
$customAttributeQty = $this->findCustomAttributeQty();
7474
$this->assertTrue(!is_bool($customAttributeQty), 'Expected to find a quantity in the custom attributes');
7575
$this->assertEquals(
7676
$qty,
@@ -197,10 +197,9 @@ protected function getDifferent($original)
197197
* Returns the product's quantity from the array of custom attributes.
198198
* If no quantity can be found, will return false.
199199
*
200-
* @param array $customAttributes
201200
* @return int|bool
202201
*/
203-
protected function findCustomAttributeQty($customAttributes)
202+
protected function findCustomAttributeQty()
204203
{
205204
$qty = false;
206205
$qtyAndStockStatus = [];

0 commit comments

Comments
 (0)