Skip to content

Commit 3efe60d

Browse files
committed
MAGETWO-71522: [Backport] - Checkout using Paypal with configurable product fails and increases QTY of both configurable and simple products - for 2.1
1 parent da68586 commit 3efe60d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dev/tests/integration/testsuite/Magento/Paypal/Controller/ExpressTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ExpressTest extends \Magento\TestFramework\TestCase\AbstractController
2323
/**
2424
* @magentoDataFixture Magento/Sales/_files/quote.php
2525
* @magentoDataFixture Magento/Paypal/_files/quote_payment.php
26+
* @return void
2627
*/
2728
public function testReviewAction()
2829
{
@@ -45,6 +46,7 @@ public function testReviewAction()
4546
/**
4647
* @magentoDataFixture Magento/Paypal/_files/quote_payment_express.php
4748
* @magentoConfigFixture current_store paypal/general/business_account merchant_2012050718_biz@example.com
49+
* @return void
4850
*/
4951
public function testCancelAction()
5052
{
@@ -82,6 +84,7 @@ public function testCancelAction()
8284
*
8385
* @magentoDataFixture Magento/Sales/_files/quote.php
8486
* @magentoDataFixture Magento/Customer/_files/customer.php
87+
* @return void
8588
*/
8689
public function testStartActionCustomerToQuote()
8790
{
@@ -143,6 +146,7 @@ public function testStartActionCustomerToQuote()
143146
* @magentoDataFixture Magento/Paypal/_files/quote_express_configurable.php
144147
* @magentoDbIsolation enabled
145148
* @magentoAppIsolation enabled
149+
* @return void
146150
*/
147151
public function testReturnAction()
148152
{

dev/tests/integration/testsuite/Magento/Paypal/_files/quote_express_configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
require __DIR__ . '/../../../Magento/ConfigurableProduct/_files/product_configurable.php';
1515

16-
/** @var $objectManager \Magento\TestFramework\ObjectManager */
16+
/** @var \Magento\TestFramework\ObjectManager $objectManager */
1717
$objectManager = Bootstrap::getObjectManager();
1818

1919
/** @var \Magento\Catalog\Model\Product $product */
2020
/** @var \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute */
2121
$productRepository = $objectManager->create(ProductRepositoryInterface::class);
2222
$product = $productRepository->get('configurable');
2323

24-
/** @var $options Collection */
24+
/** @var Collection $options */
2525
$options = $objectManager->create(Collection::class);
2626
$option = $options->setAttributeFilter($attribute->getId())->getFirstItem();
2727

0 commit comments

Comments
 (0)