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
functional
tests
app
Magento
Sales
Test
TestCase
UnassignCustomOrderStatusTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Test\TestCase
;
8
9
use Magento\Sales\Test\Fixture\OrderStatus;
10
use Magento\Sales\Test\Page\Adminhtml\OrderStatusIndex;
11
use Magento\Mtf\TestCase\Injectable;
12
27
class
UnassignCustomOrderStatusTest
extends
Injectable
28
{
29
/* tags */
30
const
MVP
=
'yes'
;
31
/* end tags */
32
38
protected
$orderStatusIndex
;
39
46
public
function
__inject
(OrderStatusIndex
$orderStatusIndex
)
47
{
48
$this->orderStatusIndex =
$orderStatusIndex
;
49
}
50
57
public
function
test
(OrderStatus
$orderStatus
)
58
{
59
// Preconditions:
60
$orderStatus
->persist();
61
62
// Steps:
63
$orderStatusLabel =
$orderStatus
->getLabel();
64
$this->orderStatusIndex->open();
65
$this->orderStatusIndex->getOrderStatusGrid()->searchAndUnassign([
'label'
=> $orderStatusLabel]);
66
}
67
}
Magento\Sales\Test\TestCase\UnassignCustomOrderStatusTest\__inject
__inject(OrderStatusIndex $orderStatusIndex)
Definition:
UnassignCustomOrderStatusTest.php:46
Magento\Sales\Test\TestCase\UnassignCustomOrderStatusTest\test
test(OrderStatus $orderStatus)
Definition:
UnassignCustomOrderStatusTest.php:57
Magento\Sales\Test\TestCase\UnassignCustomOrderStatusTest\MVP
const MVP
Definition:
UnassignCustomOrderStatusTest.php:30
$orderStatus
$orderStatus
Definition:
order_status.php:9
Magento\Sales\Test\TestCase\UnassignCustomOrderStatusTest\$orderStatusIndex
$orderStatusIndex
Definition:
UnassignCustomOrderStatusTest.php:38
Magento\Sales\Test\TestCase
Definition:
AssignCustomOrderStatusTest.php:7
Magento\Sales\Test\TestCase\UnassignCustomOrderStatusTest
Definition:
UnassignCustomOrderStatusTest.php:27