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
Shipping
Test
Constraint
AssertShipmentSuccessCreateMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Shipping\Test\Constraint
;
8
9
use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertShipmentSuccessCreateMessage
extends
AbstractConstraint
16
{
20
const
SUCCESS_MESSAGE
=
'The shipment has been created.'
;
21
28
public
function
processAssert
(SalesOrderView $salesOrderView)
29
{
30
\PHPUnit\Framework\Assert::assertEquals(
31
self::SUCCESS_MESSAGE,
32
$salesOrderView->getMessagesBlock()->getSuccessMessage()
33
);
34
}
35
41
public
function
toString
()
42
{
43
return
'Shipment success create message is present.'
;
44
}
45
}
Magento\Shipping\Test\Constraint
Definition:
AssertCityBasedShippingRateChanged.php:7
Magento\Shipping\Test\Constraint\AssertShipmentSuccessCreateMessage\toString
toString()
Definition:
AssertShipmentSuccessCreateMessage.php:41
Magento\Shipping\Test\Constraint\AssertShipmentSuccessCreateMessage\processAssert
processAssert(SalesOrderView $salesOrderView)
Definition:
AssertShipmentSuccessCreateMessage.php:28
Magento\Shipping\Test\Constraint\AssertShipmentSuccessCreateMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertShipmentSuccessCreateMessage.php:20
Magento\Shipping\Test\Constraint\AssertShipmentSuccessCreateMessage
Definition:
AssertShipmentSuccessCreateMessage.php:15