Skip to content

Commit 44a1c69

Browse files
pradeep.rauthanpradeep.rauthan
authored andcommitted
MC-42623:Countries list is incorrect when using different countries per website and Global Customer Account settings - Integration test coverage implemented
1 parent e439d5b commit 44a1c69

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/Customer/Model/ResourceModel/Address/StoreAddressCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use Magento\Store\Model\ScopeInterface;
1212

1313
/**
14-
* Class Store Address Collection
15-
*
1614
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1715
*/
1816
class StoreAddressCollection extends Collection

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/Address/StoreAddressCollectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function testSetCustomerFilter()
3232
$storeId = $customer->getStoreId();
3333
$allowedCountries = $allowedCountriesObj->getAllowedCountries(ScopeInterface::SCOPE_STORE, $storeId);
3434
$strAllowedCountries = implode("%S, %S", $allowedCountries);
35-
$format = '%AWHERE%S(%Scountry_id%S IN(%S' . $strAllowedCountries . '%S))%A';
35+
$format = '%AWHERE%S(%Sparent_id%S IN(%S1%S, %S2%S))%SAND%S(%Sparent_id%S = %S-1%S)' .
36+
'%SAND%S(%Sparent_id%S = %S3%S)%SAND%S(%Scountry_id%S IN(%S' . $strAllowedCountries . '%S))%A';
3637
$this->assertStringMatchesFormat($format, (string)$select);
3738
}
3839
}

0 commit comments

Comments
 (0)