Skip to content

Commit bedf482

Browse files
MTA-3901: Add variation for Partial Refund an order placed through Braintree with Partial capture
1 parent 619209f commit bedf482

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

dev/tests/functional/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"magento/mtf": "1.0.0-rc51",
3+
"magento/mtf": "1.0.0-rc52",
44
"php": "~5.6.5|7.0.2|~7.0.6",
55
"phpunit/phpunit": "~4.8.0|~5.5.0",
66
"phpunit/phpunit-selenium": ">=1.2"

dev/tests/functional/tests/app/Magento/Braintree/Test/TestStep/PlaceOrderWithPaypalStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class PlaceOrderWithPaypalStep implements TestStepInterface
8181
* @param CheckoutOnepageSuccess $checkoutOnepageSuccess
8282
* @param FixtureFactory $fixtureFactory
8383
* @param array $products
84-
* @param array|null $prices
84+
* @param array $prices
8585
* @param OrderInjectable|null $order
8686
*/
8787
public function __construct(

dev/tests/functional/tests/app/Magento/Checkout/Test/TestStep/PlaceOrderStep.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,26 @@ class PlaceOrderStep implements TestStepInterface
7272
* @param AssertGrandTotalOrderReview $assertGrandTotalOrderReview
7373
* @param CheckoutOnepageSuccess $checkoutOnepageSuccess
7474
* @param FixtureFactory $fixtureFactory
75+
* @param array $products
76+
* @param array $prices
7577
* @param OrderInjectable|null $order
76-
* @param array|null $products
77-
* @param array|null $prices
7878
*/
7979
public function __construct(
8080
CheckoutOnepage $checkoutOnepage,
8181
AssertGrandTotalOrderReview $assertGrandTotalOrderReview,
8282
CheckoutOnepageSuccess $checkoutOnepageSuccess,
8383
FixtureFactory $fixtureFactory,
84-
OrderInjectable $order = null,
8584
array $products = [],
86-
array $prices = []
85+
array $prices = [],
86+
OrderInjectable $order = null
8787
) {
8888
$this->checkoutOnepage = $checkoutOnepage;
8989
$this->assertGrandTotalOrderReview = $assertGrandTotalOrderReview;
9090
$this->checkoutOnepageSuccess = $checkoutOnepageSuccess;
9191
$this->fixtureFactory = $fixtureFactory;
92-
$this->order = $order;
9392
$this->products = $products;
9493
$this->prices = $prices;
94+
$this->order = $order;
9595
}
9696

9797
/**

dev/tests/functional/tests/app/Magento/Sales/Test/Repository/OrderInjectable/Price.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@
6666
</dataset>
6767

6868
<dataset name="full_flow">
69+
<field name="refund" xsi:type="array">
70+
<item name="0" xsi:type="array">
71+
<item name="grand_creditmemo_total" xsi:type="string">565</item>
72+
</item>
73+
</field>
6974
<field name="0" xsi:type="array">
70-
<item name="grand_creditmemo_total" xsi:type="string">565</item>
7175
<item name="grand_invoice_total" xsi:type="string">565</item>
7276
<item name="grand_order_total" xsi:type="string">565</item>
7377
</field>

dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/SubmitOrderStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class SubmitOrderStep implements TestStepInterface
6161
private $products;
6262

6363
/**
64+
* @constructor
6465
* @param OrderCreateIndex $orderCreateIndex
6566
* @param SalesOrderView $salesOrderView
6667
* @param FixtureFactory $fixtureFactory
@@ -80,7 +81,6 @@ public function __construct(
8081
$this->salesOrderView = $salesOrderView;
8182
$this->fixtureFactory = $fixtureFactory;
8283
$this->customer = $customer;
83-
$this->products = $products;
8484
$this->billingAddress = $billingAddress;
8585
$this->products = $products;
8686
}

0 commit comments

Comments
 (0)