Skip to content

Commit 5e3bfbf

Browse files
committed
MAGETWO-62621: [Backport] - Gift Card Accounts are not being generated with Auth&Capture payment action on Authorize.net DP enabled -for 2.1
1 parent 0ed28bf commit 5e3bfbf

File tree

3 files changed

+38
-29
lines changed

3 files changed

+38
-29
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/View/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getCustomerGroup()
6060
/**
6161
* Get Product options.
6262
*
63-
* @param int $sku
63+
* @param string $sku
6464
* @return array
6565
*/
6666
public function getProductOptions($sku)

dev/tests/integration/testsuite/Magento/Authorizenet/Model/DirectpostTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ protected function setUp()
4646
->setMethods(['create'])
4747
->getMock();
4848

49-
$this->directPost = $this->objectManager->create(Directpost::class, [
50-
'httpClientFactory' => $this->httpClientFactory,
51-
]);
49+
$this->directPost = $this->objectManager->create(
50+
Directpost::class,
51+
[
52+
'httpClientFactory' => $this->httpClientFactory,
53+
]
54+
);
5255
}
5356

5457
/**

dev/tests/integration/testsuite/Magento/Authorizenet/_files/order.php

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,40 @@
2222
->setPoNumber('10101200');
2323

2424
/** @var Address $billingAddress */
25-
$billingAddress = $objectManager->create(Address::class, [
26-
'data' => [
27-
'firstname' => 'John',
28-
'lastname' => 'Doe',
29-
'email' => 'customer@example.com',
30-
'street' => 'Pearl St',
31-
'city' => 'Los Angeles',
32-
'region' => 'CA',
33-
'postcode' => '10020',
34-
'country_id' => 'US',
35-
'telephone' => '22-333-44',
36-
'address_type' => 'billing',
25+
$billingAddress = $objectManager->create(
26+
Address::class,
27+
[
28+
'data' => [
29+
'firstname' => 'John',
30+
'lastname' => 'Doe',
31+
'email' => 'customer@example.com',
32+
'street' => 'Pearl St',
33+
'city' => 'Los Angeles',
34+
'region' => 'CA',
35+
'postcode' => '10020',
36+
'country_id' => 'US',
37+
'telephone' => '22-333-44',
38+
'address_type' => 'billing',
39+
],
3740
]
38-
]);
41+
);
3942

40-
$shippingAddress = $objectManager->create(Address::class, [
41-
'data' => [
42-
'firstname' => 'John',
43-
'lastname' => 'Doe',
44-
'email' => 'customer@example.com',
45-
'street' => 'Bourne St',
46-
'city' => 'London',
47-
'postcode' => 'DW23W',
48-
'country_id' => 'UK',
49-
'telephone' => '22-333-44',
50-
'address_type' => 'billing',
43+
$shippingAddress = $objectManager->create(
44+
Address::class,
45+
[
46+
'data' => [
47+
'firstname' => 'John',
48+
'lastname' => 'Doe',
49+
'email' => 'customer@example.com',
50+
'street' => 'Bourne St',
51+
'city' => 'London',
52+
'postcode' => 'DW23W',
53+
'country_id' => 'UK',
54+
'telephone' => '22-333-44',
55+
'address_type' => 'billing',
56+
],
5157
]
52-
]);
58+
);
5359

5460
/** @var Order $order */
5561
$order = $objectManager->create(Order::class);

0 commit comments

Comments
 (0)