Skip to content

Commit 5749b24

Browse files
committed
Fixed the integration test
1 parent 705b5be commit 5749b24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ public function testTelephoneWithStoreLabel(): void
150150
\Magento\Store\Model\StoreManagerInterface::class
151151
);
152152
$websites = $storeManager->getWebsites();
153-
/** @var \Magento\Customer\Model\Attribute $model */
154-
$model = Bootstrap::getObjectManager()->create(
155-
\Magento\Customer\Model\Attribute::class
153+
/** @var \Magento\Eav\Model\Config $eavConfig */
154+
$eavConfig = Bootstrap::getObjectManager()->create(
155+
\Magento\Eav\Model\Config::class
156156
);
157-
$model->loadByCode('customer_address', 'telephone')->setIsVisible('1');
157+
$model = $eavConfig->getAttribute('customer_address', 'telephone');
158158
$storeLabels = $model->getStoreLabels();
159159
foreach ($websites as $website) {
160160
$storeLabels[$website->getId()] = 'Phone NumberX';

0 commit comments

Comments
 (0)