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
Payment
_files
order_status.php
Go to the documentation of this file.
1
<?php
8
$status
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(\
Magento
\Sales\Model\Order\Status::class);
9
//status for state new
10
$status
->setData(
'status'
,
'custom_new_status'
)->setData(
'label'
,
'Test Status'
)->save();
11
$status
->assignState(\
Magento
\Sales\Model\Order::STATE_NEW,
true
);
12
//status for state canceled
13
$status
->setData(
'status'
,
'custom_canceled_status'
)->setData(
'label'
,
'Test Status'
)->unsetData(
'id'
)->save();
14
$status
->assignState(\
Magento
\Sales\Model\Order::STATE_CANCELED,
true
);
$status
$status
Definition:
order_status.php:8
Magento
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125