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
SalesRule
Test
Constraint
AssertCartPriceRuleFreeShippingIsApplied.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\SalesRule\Test\Constraint
;
8
12
class
AssertCartPriceRuleFreeShippingIsApplied
extends
AssertCartPriceRuleApplying
13
{
14
const
FREE_SHIPPING_PRICE
=
'0.00'
;
15
21
protected
function
assert
()
22
{
23
$shippingPrice
= $this->checkoutCart->getTotalsBlock()->getShippingPrice();
24
25
\PHPUnit\Framework\Assert::assertEquals(
26
$shippingPrice
,
27
self::FREE_SHIPPING_PRICE,
28
'Current shipping price: \''
.
$shippingPrice
29
.
'\'
not equals with free shipping price: \
''
. self::FREE_SHIPPING_PRICE .
'\''
30
);
31
}
32
38
public
function
toString
()
39
{
40
return
'Free shipping is applied.'
;
41
}
42
}
Magento\SalesRule\Test\Constraint\AssertCartPriceRuleFreeShippingIsApplied\assert
assert()
Definition:
AssertCartPriceRuleFreeShippingIsApplied.php:21
$shippingPrice
$shippingPrice
Definition:
price.phtml:12
Magento\SalesRule\Test\Constraint\AssertCartPriceRuleFreeShippingIsApplied\toString
toString()
Definition:
AssertCartPriceRuleFreeShippingIsApplied.php:38
Magento\SalesRule\Test\Constraint\AssertCartPriceRuleApplying
Definition:
AssertCartPriceRuleApplying.php:26
Magento\SalesRule\Test\Constraint\AssertCartPriceRuleFreeShippingIsApplied
Definition:
AssertCartPriceRuleFreeShippingIsApplied.php:12
Magento\SalesRule\Test\Constraint
Definition:
AssertCartPriceRuleApplying.php:7
Magento\SalesRule\Test\Constraint\AssertCartPriceRuleFreeShippingIsApplied\FREE_SHIPPING_PRICE
const FREE_SHIPPING_PRICE
Definition:
AssertCartPriceRuleFreeShippingIsApplied.php:14