Skip to content

Commit dd11aec

Browse files
MAGETWO-97317: Price missing when adding product via API to previously emptied cart
- Fix static tests.
1 parent 2962ee6 commit dd11aec

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

app/code/Magento/Quote/Test/Unit/Model/QuoteManagementTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,11 @@ protected function setPropertyValue(&$object, $property, $value)
10521052
return $object;
10531053
}
10541054

1055+
/**
1056+
* Test submit for customer
1057+
*
1058+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
1059+
*/
10551060
public function testSubmitForCustomer()
10561061
{
10571062
$orderData = [];

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
2121
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
2222
->setQty(100)
23-
->setStockData([
24-
'use_config_manage_stock' => 1,
25-
'qty' => 100,
26-
'is_qty_decimal' => 0,
27-
'is_in_stock' => 1,
28-
])->save();
23+
->setStockData(
24+
[
25+
'use_config_manage_stock' => 1,
26+
'qty' => 100,
27+
'is_qty_decimal' => 0,
28+
'is_in_stock' => 1,
29+
]
30+
)->save();

0 commit comments

Comments
 (0)