Skip to content

Commit ad9115c

Browse files
Vahalenaorobei
authored andcommitted
magento/graphql-ce#808: [Test coverage] Add disabled variation of Configurable Product to cart, improved fixtures (line limit)
1 parent 201f9be commit ad9115c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev/tests/integration/testsuite/Magento/ConfigurableProduct/_files/product_configurable_zero_qty_first_child.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
$childSku = 'simple_10';
1111
try {
1212
$childProduct = $productRepository->get($childSku);
13-
$childProduct->setStockData(['use_config_manage_stock' => 1, 'qty' => 0, 'is_qty_decimal' => 0, 'is_in_stock' => 0]);
13+
$childProduct->setStockData([
14+
'use_config_manage_stock' => 1,
15+
'qty' => 0,
16+
'is_qty_decimal' => 0,
17+
'is_in_stock' => 0
18+
]);
1419
$productRepository->save($childProduct);
1520
} catch (Exception $e) {
1621
// Nothing to remove

0 commit comments

Comments
 (0)