Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
Catalog
_files
category_with_position.php
Go to the documentation of this file.
1
<?php
7
$category
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(\
Magento
\Catalog\Model\Category::class);
8
$category
->isObjectNew(
true
);
9
$category
->setId(
10
'444'
11
)->setName(
12
'Category 1'
13
)->setAttributeSetId(
14
'3'
15
)->setParentId(
16
2
17
)->setPath(
18
'1/2'
19
)->setLevel(
20
'2'
21
)->setDefaultSortBy(
22
'name'
23
)->setIsActive(
24
true
25
)->setPosition(
26
'5'
27
)->save();
$category
$category
Definition:
category_with_position.php:7
Magento
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125