Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 2baef49

Browse files
committed
fix static tests
1 parent 36bedd4 commit 2baef49

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/MergeCartsTest.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ public function testMergeGuestWithCustomerCart()
6868
$this->quoteResource->load($firstQuote, 'test_quote', 'reserved_order_id');
6969

7070
$secondQuote = $this->quoteFactory->create();
71-
$this->quoteResource->load($secondQuote, 'test_order_with_virtual_product_without_address', 'reserved_order_id');
71+
$this->quoteResource->load(
72+
$secondQuote,
73+
'test_order_with_virtual_product_without_address',
74+
'reserved_order_id'
75+
);
7276

7377
$firstMaskedId = $this->quoteIdToMaskedId->execute((int)$firstQuote->getId());
7478
$secondMaskedId = $this->quoteIdToMaskedId->execute((int)$secondQuote->getId());
@@ -101,7 +105,12 @@ public function testMergeTwoCustomerCarts()
101105
$this->quoteResource->load($firstQuote, 'test_quote', 'reserved_order_id');
102106
$firstMaskedId = $this->quoteIdToMaskedId->execute((int)$firstQuote->getId());
103107

104-
$createCartResponse = $this->graphQlMutation($this->getCreateEmptyCartMutation(), [], '', $this->getHeaderMap());
108+
$createCartResponse = $this->graphQlMutation(
109+
$this->getCreateEmptyCartMutation(),
110+
[],
111+
'',
112+
$this->getHeaderMap()
113+
);
105114
self::assertArrayHasKey('createEmptyCart', $createCartResponse);
106115
$secondMaskedId = $createCartResponse['createEmptyCart'];
107116
$this->addSimpleProductToCart($secondMaskedId, $this->getHeaderMap());
@@ -140,7 +149,12 @@ public function testMergeOtherCustomerCart()
140149
$this->quoteResource->load($firstQuote, 'test_quote', 'reserved_order_id');
141150

142151
$firstMaskedId = $this->quoteIdToMaskedId->execute((int)$firstQuote->getId());
143-
$createCartResponse = $this->graphQlMutation($this->getCreateEmptyCartMutation(), [], '', $this->getHeaderMap('[email protected]'));
152+
$createCartResponse = $this->graphQlMutation(
153+
$this->getCreateEmptyCartMutation(),
154+
[],
155+
'',
156+
$this->getHeaderMap('[email protected]')
157+
);
144158
self::assertArrayHasKey('createEmptyCart', $createCartResponse);
145159
$secondMaskedId = $createCartResponse['createEmptyCart'];
146160
$this->addSimpleProductToCart($secondMaskedId, $this->getHeaderMap('[email protected]'));

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/MergeCartsTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public function testMergeGuestCarts()
5151
$this->quoteResource->load($firstQuote, 'test_order_with_simple_product_without_address', 'reserved_order_id');
5252

5353
$secondQuote = $this->quoteFactory->create();
54-
$this->quoteResource->load($secondQuote, 'test_order_with_virtual_product_without_address', 'reserved_order_id');
54+
$this->quoteResource->load(
55+
$secondQuote,
56+
'test_order_with_virtual_product_without_address',
57+
'reserved_order_id'
58+
);
5559

5660
$firstMaskedId = $this->quoteIdToMaskedId->execute((int)$firstQuote->getId());
5761
$secondMaskedId = $this->quoteIdToMaskedId->execute((int)$secondQuote->getId());

0 commit comments

Comments
 (0)