Skip to content

Commit cd25b82

Browse files
MC-36967: Create automated test for "Check that restricted countries on default websites are not restricted on other sites when editing addresses in an existing order"
1 parent d9b3eaa commit cd25b82

File tree

1 file changed

+4
-4
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/Order/Address

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/Order/Address/FormTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function tearDown(): void
7070
public function testGetFormValues(): void
7171
{
7272
$address = $this->getOrderAddress('100000001');
73-
$this->prepareFormBlock($address);
73+
$this->registerOrderAddress($address);
7474
$formValues = $this->block->getFormValues();
7575
$this->assertEquals($address->getData(), $formValues);
7676
}
@@ -88,7 +88,7 @@ public function testGetFormValues(): void
8888
public function testCountryIdInAllowedList(): void
8989
{
9090
$address = $this->getOrderAddress('100000001');
91-
$this->prepareFormBlock($address);
91+
$this->registerOrderAddress($address);
9292
$this->assertEquals('US', $address->getCountryId());
9393
$this->assertCountryField('US');
9494
}
@@ -106,7 +106,7 @@ public function testCountryIdInAllowedList(): void
106106
public function testCountryIdInNotAllowedList(): void
107107
{
108108
$address = $this->getOrderAddress('100000001');
109-
$this->prepareFormBlock($address);
109+
$this->registerOrderAddress($address);
110110
$this->assertCountryField('CA');
111111
}
112112

@@ -116,7 +116,7 @@ public function testCountryIdInNotAllowedList(): void
116116
* @param OrderAddressInterface $address
117117
* @return void
118118
*/
119-
private function prepareFormBlock(OrderAddressInterface $address): void
119+
private function registerOrderAddress(OrderAddressInterface $address): void
120120
{
121121
$this->registry->unregister('order_address');
122122
$this->registry->register('order_address', $address);

0 commit comments

Comments
 (0)