File tree 3 files changed +7
-2
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -865,6 +865,8 @@ public function beforeSave()
865
865
}
866
866
867
867
parent ::beforeSave ();
868
+
869
+ return $ this ;
868
870
}
869
871
870
872
/**
@@ -946,7 +948,7 @@ public function assignCustomerWithAddressChange(
946
948
try {
947
949
$ defaultBillingAddress = $ this ->addressRepository ->getById ($ customer ->getDefaultBilling ());
948
950
} catch (\Magento \Framework \Exception \NoSuchEntityException $ e ) {
949
- //
951
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyStatement
950
952
}
951
953
if (isset ($ defaultBillingAddress )) {
952
954
/** @var \Magento\Quote\Model\Quote\Address $billingAddress */
@@ -960,7 +962,7 @@ public function assignCustomerWithAddressChange(
960
962
try {
961
963
$ defaultShippingAddress = $ this ->addressRepository ->getById ($ customer ->getDefaultShipping ());
962
964
} catch (\Magento \Framework \Exception \NoSuchEntityException $ e ) {
963
- //
965
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyStatement
964
966
}
965
967
if (isset ($ defaultShippingAddress )) {
966
968
/** @var \Magento\Quote\Model\Quote\Address $shippingAddress */
@@ -1686,6 +1688,7 @@ public function addProduct(
1686
1688
$ errors [] = $ message ;
1687
1689
}
1688
1690
}
1691
+ break ;
1689
1692
}
1690
1693
}
1691
1694
if (!empty ($ errors )) {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class Reorder
37
37
*/
38
38
private const MESSAGE_CODES = [
39
39
'Product that you are trying to add is not available ' => self ::ERROR_NOT_SALABLE ,
40
+ 'This product is out of stock ' => self ::ERROR_NOT_SALABLE ,
40
41
'The fewest you may purchase is ' => self ::ERROR_INSUFFICIENT_STOCK ,
41
42
'The most you may purchase is ' => self ::ERROR_INSUFFICIENT_STOCK ,
42
43
'The requested qty is not available ' => self ::ERROR_INSUFFICIENT_STOCK ,
Original file line number Diff line number Diff line change 15
15
16
16
/**
17
17
* Test Reorder
18
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18
19
*/
19
20
class ReorderTest extends GraphQlAbstract
20
21
{
You can’t perform that action at this time.
0 commit comments