File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
dev/tests/integration/testsuite/Magento
Catalog/Model/ResourceModel/Eav Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Catalog \Model \ResourceModel \Eav ;
7
7
8
8
use Magento \Eav \Api \AttributeRepositoryInterface ;
9
+ use Magento \Eav \Api \Data \AttributeInterface ;
9
10
use Magento \Eav \Model \Config ;
10
11
use Magento \Framework \ObjectManagerInterface ;
11
12
use Magento \TestFramework \Helper \Bootstrap ;
@@ -59,7 +60,7 @@ public function testCRUD()
59
60
->setEntityTypeId ($ this ->catalogProductEntityType )
60
61
->setFrontendLabel ('test ' )
61
62
->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 ()]);
63
64
$ crud ->testCrud ();
64
65
}
65
66
Original file line number Diff line number Diff line change 8
8
namespace Magento \Customer \Model ;
9
9
10
10
use Magento \Eav \Api \AttributeRepositoryInterface ;
11
+ use Magento \Eav \Api \Data \AttributeInterface ;
11
12
use Magento \Eav \Model \Config ;
12
13
use Magento \Framework \ObjectManagerInterface ;
13
14
use Magento \TestFramework \Helper \Bootstrap ;
@@ -61,7 +62,7 @@ public function testCRUD(): void
61
62
->setEntityTypeId ($ this ->customerEntityType )
62
63
->setFrontendLabel ('test ' )
63
64
->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 ()]);
65
66
$ crud ->testCrud ();
66
67
}
67
68
You can’t perform that action at this time.
0 commit comments