File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/Customer/Block/Form Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,11 @@ public function testTelephoneWithStoreLabel(): void
150
150
\Magento \Store \Model \StoreManagerInterface::class
151
151
);
152
152
$ 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
156
156
);
157
- $ model-> loadByCode ('customer_address ' , 'telephone ' )-> setIsVisible ( ' 1 ' );
157
+ $ model = $ eavConfig -> getAttribute ('customer_address ' , 'telephone ' );
158
158
$ storeLabels = $ model ->getStoreLabels ();
159
159
foreach ($ websites as $ website ) {
160
160
$ storeLabels [$ website ->getId ()] = 'Phone NumberX ' ;
You can’t perform that action at this time.
0 commit comments