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
Bundle
Test
Constraint
AssertBundleProductInCart.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Bundle\Test\Constraint
;
8
9
use
Magento\Catalog\Test\Constraint\AssertProductInCart
;
10
use Magento\Checkout\Test\Page\CheckoutCart;
11
use Magento\Mtf\Fixture\FixtureInterface;
12
16
class
AssertBundleProductInCart
extends
AssertProductInCart
17
{
25
protected
function
countPrices
(FixtureInterface
$product
,
CheckoutCart
$checkoutCart)
26
{
27
parent::countPrices(
$product
, $checkoutCart);
28
$this->countSubItemPrice(
$product
);
29
}
30
37
private
function
countSubItemPrice(FixtureInterface
$product
)
38
{
39
$checkoutData =
$product
->getCheckoutData();
40
if
(isset($checkoutData[
'cartItem'
][
'subItemPrice'
])) {
41
$this->fixtureActualPrice += $checkoutData[
"cartItem"
][
"subItemPrice"
];
42
}
43
}
44
}
Magento\Checkout\Model\Cart
Definition:
CartInterface.php:6
Magento\Bundle\Test\Constraint
Definition:
AssertBundleInCategory.php:7
Magento\Bundle\Test\Constraint\AssertBundleProductInCart\countPrices
countPrices(FixtureInterface $product, CheckoutCart $checkoutCart)
Definition:
AssertBundleProductInCart.php:25
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Bundle\Test\Constraint\AssertBundleProductInCart
Definition:
AssertBundleProductInCart.php:16
Magento\Catalog\Test\Constraint\AssertProductInCart
Definition:
AssertProductInCart.php:19