Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
attribute_user_defined_custom_attribute_rollback.php
Go to the documentation of this file.
1 <?php
8 $model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Customer\Model\Attribute::class);
9 $model->load('custom_attribute1', 'attribute_code')->delete();
10 
11 $model2 = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Customer\Model\Attribute::class);
12 $model2->load('custom_attribute2', 'attribute_code')->delete();
13 
14 $model2 = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Customer\Model\Attribute::class);
15 $model2->load('customer_image', 'attribute_code')->delete();