Skip to content

Commit 5595d4e

Browse files
committed
MAGETWO-98832: Multistore Allowed Countries List Problem
1 parent a5800af commit 5595d4e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

app/code/Magento/Customer/Test/Unit/Model/AccountManagementTest.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,15 +2120,9 @@ public function testCreateAccountUnexpectedValueException(): void
21202120
->method('newAccount')
21212121
->willThrowException($exception);
21222122
$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');
21322126
$this->accountManagement->createAccount($customer);
21332127
}
21342128

app/code/Magento/Quote/Model/Quote.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ class Quote extends AbstractExtensibleModel implements \Magento\Quote\Api\Data\C
409409
* @param array $data
410410
* @param \Magento\Sales\Model\OrderIncrementIdChecker|null $orderIncrementIdChecker
411411
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
412+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
412413
*/
413414
public function __construct(
414415
\Magento\Framework\Model\Context $context,
@@ -929,6 +930,7 @@ public function assignCustomer(\Magento\Customer\Api\Data\CustomerInterface $cus
929930
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
930931
* @param Address $billingAddress Quote billing address
931932
* @param Address $shippingAddress Quote shipping address
933+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
932934
* @return $this
933935
*/
934936
public function assignCustomerWithAddressChange(

0 commit comments

Comments
 (0)