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
AssertShippingMethodOnPrintOrder.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Shipping\Test\Constraint
;
8
9
use Magento\Sales\Test\Page\SalesGuestPrint;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertShippingMethodOnPrintOrder
extends
AbstractConstraint
16
{
20
const
SHIPPING_TEMPLATE
=
"%s - %s"
;
21
29
public
function
processAssert
(SalesGuestPrint $salesGuestPrint, $shipping)
30
{
31
$expected = sprintf(self::SHIPPING_TEMPLATE, $shipping[
'shipping_service'
], $shipping[
'shipping_method'
]);
32
\PHPUnit\Framework\Assert::assertTrue(
33
$salesGuestPrint->getInfoShipping()->isShippingMethodVisible($expected),
34
"Shipping method was printed incorrectly."
35
);
36
}
37
43
public
function
toString
()
44
{
45
return
"Shipping method was printed correctly."
;
46
}
47
}
Magento\Shipping\Test\Constraint\AssertShippingMethodOnPrintOrder
Definition:
AssertShippingMethodOnPrintOrder.php:15
Magento\Shipping\Test\Constraint\AssertShippingMethodOnPrintOrder\toString
toString()
Definition:
AssertShippingMethodOnPrintOrder.php:43
Magento\Shipping\Test\Constraint
Definition:
AssertCityBasedShippingRateChanged.php:7
Magento\Shipping\Test\Constraint\AssertShippingMethodOnPrintOrder\processAssert
processAssert(SalesGuestPrint $salesGuestPrint, $shipping)
Definition:
AssertShippingMethodOnPrintOrder.php:29
Magento\Shipping\Test\Constraint\AssertShippingMethodOnPrintOrder\SHIPPING_TEMPLATE
const SHIPPING_TEMPLATE
Definition:
AssertShippingMethodOnPrintOrder.php:20