Skip to content

Commit cb8ce85

Browse files
committed
change country from UA to VA in tests
1 parent 50e0ca7 commit cb8ce85

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ public function testCreateCustomerAddressWithRedundantStreetLine()
466466
public function testCreateCustomerAddressWithOptionalZipCode()
467467
{
468468
$newAddress = [
469-
'country_code' => 'UA',
469+
'country_code' => 'VA',
470+
'postcode' => '00120',
470471
'street' => ['Line 1 Street', 'Line 2'],
471472
'company' => 'Company name',
472473
'telephone' => '123456789',
@@ -487,6 +488,7 @@ public function testCreateCustomerAddressWithOptionalZipCode()
487488
mutation {
488489
createCustomerAddress(input: {
489490
country_code: {$newAddress['country_code']}
491+
postcode: "{$newAddress['postcode']}"
490492
street: ["{$newAddress['street'][0]}","{$newAddress['street'][1]}"]
491493
company: "{$newAddress['company']}"
492494
telephone: "{$newAddress['telephone']}"

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,13 +1149,13 @@ public function testSetBillingAddressesWithNotRequiredRegion()
11491149
cart_id: "$maskedQuoteId"
11501150
billing_address: {
11511151
address: {
1152-
firstname: "Vasyl"
1152+
firstname: "John"
11531153
lastname: "Doe"
1154-
street: ["1 Svobody"]
1155-
city: "Lviv"
1156-
region: "Lviv"
1157-
postcode: "00000"
1158-
country_code: "UA"
1154+
street: ["Via della Posta"]
1155+
city: "Vatican City"
1156+
region: "Vatican City"
1157+
postcode: "00120"
1158+
country_code: "VA"
11591159
telephone: "555-555-55-55"
11601160
}
11611161
}
@@ -1177,8 +1177,8 @@ public function testSetBillingAddressesWithNotRequiredRegion()
11771177
$response = $this->graphQlMutation($query, [], '', $this->getHeaderMap());
11781178
self::assertArrayHasKey('cart', $response['setBillingAddressOnCart']);
11791179
$cartResponse = $response['setBillingAddressOnCart']['cart'];
1180-
self::assertEquals('UA', $cartResponse['billing_address']['country']['code']);
1181-
self::assertEquals('Lviv', $cartResponse['billing_address']['region']['label']);
1180+
self::assertEquals('VA', $cartResponse['billing_address']['country']['code']);
1181+
self::assertEquals('Vatican City', $cartResponse['billing_address']['region']['label']);
11821182
}
11831183

11841184
/**

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -883,11 +883,11 @@ public function testSetShippingAddressesWithNotRequiredRegion()
883883
address: {
884884
firstname: "Vasyl"
885885
lastname: "Doe"
886-
street: ["1 Svobody"]
887-
city: "Lviv"
888-
region: "Lviv"
889-
postcode: "00000"
890-
country_code: "UA"
886+
street: ["Via della Posta"]
887+
city: "Vatican City"
888+
region: "Vatican City"
889+
postcode: "00120"
890+
country_code: "VA"
891891
telephone: "555-555-55-55"
892892
}
893893
}
@@ -910,8 +910,8 @@ public function testSetShippingAddressesWithNotRequiredRegion()
910910
$response = $this->graphQlMutation($query, [], '', $this->getHeaderMap());
911911
self::assertArrayHasKey('cart', $response['setShippingAddressesOnCart']);
912912
$cartResponse = $response['setShippingAddressesOnCart']['cart'];
913-
self::assertEquals('UA', $cartResponse['shipping_addresses'][0]['country']['code']);
914-
self::assertEquals('Lviv', $cartResponse['shipping_addresses'][0]['region']['label']);
913+
self::assertEquals('VA', $cartResponse['shipping_addresses'][0]['country']['code']);
914+
self::assertEquals('Vatican City', $cartResponse['shipping_addresses'][0]['region']['label']);
915915
}
916916

917917
/**

dev/tests/integration/testsuite/Magento/Directory/Model/RegionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function getCountryIdDataProvider():array
7272
['countryId' => 'SE'],
7373
['countryId' => 'GR'],
7474
['countryId' => 'DK'],
75+
['countryId' => 'AL'],
7576
['countryId' => 'UA'],
76-
['countryId' => 'AL']
7777
];
7878
}
7979
}

0 commit comments

Comments
 (0)