Skip to content

Commit d7706e3

Browse files
MAGETWO-93285: [2.3] Edit to Customer Address attribute 'State/Territory' will not show on customer address forms
1 parent 3a6b77f commit d7706e3

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

dev/tests/integration/testsuite/Magento/Customer/Block/Form/RegisterTest.php

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ class RegisterTest extends \PHPUnit\Framework\TestCase
1919
/**
2020
* @magentoAppIsolation enabled
2121
* @magentoDbIsolation enabled
22+
* @return void
2223
*/
23-
public function testCompanyDefault()
24+
public function testCompanyDefault(): void
2425
{
2526
/** @var \Magento\Customer\Block\Widget\Company $block */
2627
$block = Bootstrap::getObjectManager()->create(Register::class)
@@ -34,8 +35,9 @@ public function testCompanyDefault()
3435
/**
3536
* @magentoAppIsolation enabled
3637
* @magentoDbIsolation enabled
38+
* @return void
3739
*/
38-
public function testTelephoneDefault()
40+
public function testTelephoneDefault(): void
3941
{
4042
/** @var \Magento\Customer\Block\Widget\Company $block */
4143
$block = Bootstrap::getObjectManager()->create(
@@ -50,8 +52,9 @@ public function testTelephoneDefault()
5052
/**
5153
* @magentoAppIsolation enabled
5254
* @magentoDbIsolation enabled
55+
* @return void
5356
*/
54-
public function testFaxDefault()
57+
public function testFaxDefault(): void
5558
{
5659
/** @var \Magento\Customer\Block\Widget\Company $block */
5760
$block = Bootstrap::getObjectManager()->create(
@@ -66,8 +69,9 @@ public function testFaxDefault()
6669
/**
6770
* @magentoAppIsolation enabled
6871
* @magentoDbIsolation enabled
72+
* @return void
6973
*/
70-
public function testCompanyDisabled()
74+
public function testCompanyDisabled(): void
7175
{
7276
/** @var \Magento\Customer\Model\Attribute $model */
7377
$model = Bootstrap::getObjectManager()->create(
@@ -89,8 +93,9 @@ public function testCompanyDisabled()
8993
/**
9094
* @magentoAppIsolation enabled
9195
* @magentoDbIsolation enabled
96+
* @return void
9297
*/
93-
public function testTelephoneDisabled()
98+
public function testTelephoneDisabled(): void
9499
{
95100
/** @var \Magento\Customer\Model\Attribute $model */
96101
$model = Bootstrap::getObjectManager()->create(
@@ -112,8 +117,9 @@ public function testTelephoneDisabled()
112117
/**
113118
* @magentoAppIsolation enabled
114119
* @magentoDbIsolation enabled
120+
* @return void
115121
*/
116-
public function testFaxEnabled()
122+
public function testFaxEnabled(): void
117123
{
118124
/** @var \Magento\Customer\Model\Attribute $model */
119125
$model = Bootstrap::getObjectManager()->create(
@@ -132,6 +138,9 @@ public function testFaxEnabled()
132138
$this->assertContains('title="Fax"', $block->toHtml());
133139
}
134140

141+
/**
142+
* @inheritdoc
143+
*/
135144
protected function tearDown()
136145
{
137146
/** @var \Magento\Eav\Model\Config $eavConfig */
@@ -145,7 +154,7 @@ protected function tearDown()
145154
* @param Template $block
146155
* @return void
147156
*/
148-
private function setAttributeDataProvider(Template $block)
157+
private function setAttributeDataProvider(Template $block): void
149158
{
150159
$attributeData = Bootstrap::getObjectManager()->get(AddressAttributeData::class);
151160
$block->setAttributeData($attributeData);

0 commit comments

Comments
 (0)