File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -2120,15 +2120,9 @@ public function testCreateAccountUnexpectedValueException(): void
2120
2120
->method ('newAccount ' )
2121
2121
->willThrowException ($ exception );
2122
2122
$ this ->logger ->expects ($ this ->once ())->method ('error ' )->with ($ exception );
2123
- $ this ->allowedCountriesReader
2124
- ->expects ($ this ->atLeastOnce ())
2125
- ->method ('getAllowedCountries ' )
2126
- ->willReturn (['US ' => 'US ' ]);
2127
- $ address
2128
- ->expects ($ this ->atLeastOnce ())
2129
- ->method ('getCountryId ' )
2130
- ->willReturn ('US ' );
2131
-
2123
+ $ this ->allowedCountriesReader ->expects ($ this ->atLeastOnce ())
2124
+ ->method ('getAllowedCountries ' )->willReturn (['US ' => 'US ' ]);
2125
+ $ address ->expects ($ this ->atLeastOnce ())->method ('getCountryId ' )->willReturn ('US ' );
2132
2126
$ this ->accountManagement ->createAccount ($ customer );
2133
2127
}
2134
2128
Original file line number Diff line number Diff line change @@ -409,6 +409,7 @@ class Quote extends AbstractExtensibleModel implements \Magento\Quote\Api\Data\C
409
409
* @param array $data
410
410
* @param \Magento\Sales\Model\OrderIncrementIdChecker|null $orderIncrementIdChecker
411
411
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
412
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
412
413
*/
413
414
public function __construct (
414
415
\Magento \Framework \Model \Context $ context ,
@@ -929,6 +930,7 @@ public function assignCustomer(\Magento\Customer\Api\Data\CustomerInterface $cus
929
930
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
930
931
* @param Address $billingAddress Quote billing address
931
932
* @param Address $shippingAddress Quote shipping address
933
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
932
934
* @return $this
933
935
*/
934
936
public function assignCustomerWithAddressChange (
You can’t perform that action at this time.
0 commit comments