Skip to content

Commit 7eb5025

Browse files
author
OlgaVasyltsun
committed
MC-31361: Remove ability to change entity type for attributes
1 parent ce1a47e commit 7eb5025

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/Eav/AttributeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Catalog\Model\ResourceModel\Eav;
77

88
use Magento\Eav\Api\AttributeRepositoryInterface;
9+
use Magento\Eav\Api\Data\AttributeInterface;
910
use Magento\Eav\Model\Config;
1011
use Magento\Framework\ObjectManagerInterface;
1112
use Magento\TestFramework\Helper\Bootstrap;
@@ -59,7 +60,7 @@ public function testCRUD()
5960
->setEntityTypeId($this->catalogProductEntityType)
6061
->setFrontendLabel('test')
6162
->setIsUserDefined(1);
62-
$crud = new \Magento\TestFramework\Entity($this->model, ['frontend_label' => uniqid()]);
63+
$crud = new \Magento\TestFramework\Entity($this->model, [AttributeInterface::FRONTEND_LABEL => uniqid()]);
6364
$crud->testCrud();
6465
}
6566

dev/tests/integration/testsuite/Magento/Customer/Model/AttributeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\Customer\Model;
99

1010
use Magento\Eav\Api\AttributeRepositoryInterface;
11+
use Magento\Eav\Api\Data\AttributeInterface;
1112
use Magento\Eav\Model\Config;
1213
use Magento\Framework\ObjectManagerInterface;
1314
use Magento\TestFramework\Helper\Bootstrap;
@@ -61,7 +62,7 @@ public function testCRUD(): void
6162
->setEntityTypeId($this->customerEntityType)
6263
->setFrontendLabel('test')
6364
->setIsUserDefined(1);
64-
$crud = new \Magento\TestFramework\Entity($this->model, ['frontend_label' => uniqid()]);
65+
$crud = new \Magento\TestFramework\Entity($this->model, [AttributeInterface::FRONTEND_LABEL => uniqid()]);
6566
$crud->testCrud();
6667
}
6768

0 commit comments

Comments
 (0)