File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
/** @var \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute */
8
- $ attribute = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
9
- ->create (\Magento \Catalog \Model \ResourceModel \Eav \Attribute::class);
8
+
9
+ use Magento \Catalog \Model \Category \Attribute ;
10
+ use Magento \TestFramework \Helper \Bootstrap ;
11
+
12
+ $ attribute = Bootstrap::getObjectManager ()
13
+ ->create (Attribute::class);
10
14
$ attribute ->setAttributeCode ('test_attribute_code_666 ' )
11
15
->setEntityTypeId (3 )
12
16
->setIsGlobal (1 )
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /** @var \Magento\Framework\Registry $registry */
8
- $ registry = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (\Magento \Framework \Registry::class);
7
+ /** @var Registry $registry */
8
+
9
+ use Magento \Catalog \Model \Category \Attribute ;
10
+ use Magento \Framework \Registry ;
11
+ use Magento \TestFramework \Helper \Bootstrap ;
12
+
13
+ $ registry = Bootstrap::getObjectManager ()->get (Registry::class);
9
14
10
15
$ registry ->unregister ('isSecureArea ' );
11
16
$ registry ->register ('isSecureArea ' , true );
12
17
13
- /** @var \Magento\Catalog\Model\ResourceModel\Eav\ Attribute $attribute */
14
- $ attribute = \ Magento \ TestFramework \ Helper \ Bootstrap::getObjectManager ()
15
- ->create (\ Magento \ Catalog \ Model \ ResourceModel \ Eav \ Attribute::class);
18
+ /** @var Attribute $attribute */
19
+ $ attribute = Bootstrap::getObjectManager ()
20
+ ->create (Attribute::class);
16
21
17
22
$ attribute ->loadByCode (3 , 'test_attribute_code_666 ' );
18
23
You can’t perform that action at this time.
0 commit comments