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
AssertMinicartItemsQty.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Test\Constraint
;
8
9
use Magento\Cms\Test\Page\CmsIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertMinicartItemsQty
extends
AbstractConstraint
16
{
24
public
function
processAssert
(
25
CmsIndex $cmsIndex,
26
$expectedItemsQty
27
) {
28
$cmsIndex->open();
29
\PHPUnit\Framework\Assert::assertSame(
30
(
int
)$expectedItemsQty,
31
$cmsIndex->getCartSidebarBlock()->getItemsQty(),
32
'The quantity of items in shopping cart is not correct.'
33
);
34
}
35
41
public
function
toString
()
42
{
43
return
'The quantity of items in mini shopping cart is correct.'
;
44
}
45
}
Magento\Checkout\Test\Constraint\AssertMinicartItemsQty\processAssert
processAssert(CmsIndex $cmsIndex, $expectedItemsQty)
Definition:
AssertMinicartItemsQty.php:24
Magento\Checkout\Test\Constraint
Definition:
AssertAddedProductToCartSuccessMessage.php:7
Magento\Checkout\Test\Constraint\AssertMinicartItemsQty\toString
toString()
Definition:
AssertMinicartItemsQty.php:41
Magento\Checkout\Test\Constraint\AssertMinicartItemsQty
Definition:
AssertMinicartItemsQty.php:15