@@ -139,38 +139,19 @@ public function testFaxEnabled(): void
139
139
}
140
140
141
141
/**
142
- * @magentoAppIsolation enabled
143
- * @magentoDbIsolation disabled
144
- * @return void
142
+ * @magentoDataFixture Magento/Customer/_files/attribute_city_store_label_address.php
145
143
*/
146
- public function testTelephoneWithStoreLabel (): void
144
+ public function testCityWithStoreLabel (): void
147
145
{
148
- /** @var \Magento\Store\Model\StoreManager $storeManager */
149
- $ storeManager = Bootstrap::getObjectManager ()->create (
150
- \Magento \Store \Model \StoreManagerInterface::class
151
- );
152
- $ stores = $ storeManager ->getStores ();
153
- /** @var \Magento\Eav\Model\Config $eavConfig */
154
- $ eavConfig = Bootstrap::getObjectManager ()->create (
155
- \Magento \Eav \Model \Config::class
156
- );
157
- $ model = $ eavConfig ->getAttribute ('customer_address ' , 'telephone ' );
158
- $ storeLabels = $ model ->getStoreLabels ();
159
- foreach ($ stores as $ store ) {
160
- $ storeLabels [$ store ->getId ()] = 'Phone NumberX ' ;
161
- }
162
- $ model ->setStoreLabels ([$ storeLabels ]);
163
- $ model ->save ();
164
-
165
146
/** @var \Magento\Customer\Block\Form\Register $block */
166
147
$ block = Bootstrap::getObjectManager ()->create (
167
148
Register::class
168
149
)->setTemplate ('Magento_Customer::form/register.phtml ' )
169
150
->setShowAddressFields (true );
170
151
$ this ->setAttributeDataProvider ($ block );
171
152
172
- $ this ->assertNotContains ('title="Phone Number " ' , $ block ->toHtml ());
173
- $ this ->assertContains ('title="Phone NumberX " ' , $ block ->toHtml ());
153
+ $ this ->assertNotContains ('title="City " ' , $ block ->toHtml ());
154
+ $ this ->assertContains ('title="Suburb " ' , $ block ->toHtml ());
174
155
}
175
156
176
157
/**
0 commit comments