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
Checkout
Test
Constraint
AssertSubtotalInMiniShoppingCart.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Test\Constraint
;
8
9
use
Magento\Checkout\Test\Fixture\Cart
;
10
use Magento\Cms\Test\Page\CmsIndex;
11
use
Magento\Mtf\Constraint\AbstractAssertForm
;
12
16
class
AssertSubtotalInMiniShoppingCart
extends
AbstractAssertForm
17
{
25
public
function
processAssert
(CmsIndex $cmsIndex, Cart
$cart
)
26
{
27
$cmsIndex->open();
28
$fixtureSubtotal = number_format(
$cart
->getSubtotal(), 2);
29
$miniCartSubtotal = $cmsIndex->getCartSidebarBlock()->getSubtotal();
30
\PHPUnit\Framework\Assert::assertEquals(
31
$fixtureSubtotal,
32
$miniCartSubtotal,
33
'Subtotal price in mini shopping cart is not equal to subtotal price from fixture.'
34
);
35
}
36
42
public
function
toString
()
43
{
44
return
'Subtotal in mini shopping cart equals to expected subtotal from data set.'
;
45
}
46
}
Magento\Checkout\Test\Constraint\AssertSubtotalInMiniShoppingCart\processAssert
processAssert(CmsIndex $cmsIndex, Cart $cart)
Definition:
AssertSubtotalInMiniShoppingCart.php:25
Magento\Checkout\Test\Fixture\Cart
Definition:
Items.php:7
Magento\Checkout\Test\Constraint\AssertSubtotalInMiniShoppingCart\toString
toString()
Definition:
AssertSubtotalInMiniShoppingCart.php:42
Magento\Mtf\Constraint\AbstractAssertForm
Definition:
AbstractAssertForm.php:18
Magento\Checkout\Test\Constraint
Definition:
AssertAddedProductToCartSuccessMessage.php:7
Magento\Checkout\Test\Constraint\AssertSubtotalInMiniShoppingCart
Definition:
AssertSubtotalInMiniShoppingCart.php:16
$cart
$cart
Definition:
quote_with_bundle_and_options.php:47