Skip to content

Commit f69c8e8

Browse files
committed
magento/graphql-ce#736: Configurable products with "out of stock" return as product: null
- code style fixes
1 parent b3a9bcf commit f69c8e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/ConfigurableProduct/ConfigurableProductStockStatusTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ public function testConfigurableProductShowOutOfStock()
4343
$this->stockRegistry->updateStockItemBySku($childSkuOutOfStock, $stockItem);
4444
$query = $this->getQuery($parentSku);
4545
$response = $this->graphQlQuery($query);
46-
$this->assertArraySubset([
47-
['product' => ['sku' => $childSkuOutOfStock, 'stock_status' => 'OUT_OF_STOCK']]],
48-
$response['products']['items'][0]['variants']);
46+
$this->assertArraySubset(
47+
[['product' => ['sku' => $childSkuOutOfStock, 'stock_status' => 'OUT_OF_STOCK']]],
48+
$response['products']['items'][0]['variants']
49+
);
4950
}
5051

5152
/**

0 commit comments

Comments
 (0)