10 use Magento\Checkout\Test\Page\CheckoutCart;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 use Magento\Mtf\ObjectManager;
13 use Magento\Mtf\System\Event\EventManagerInterface;
66 EventManagerInterface $eventManager,
92 if (
$cart->hasData(
'tax_amount')) {
93 $this->assertTaxInShoppingCart->processAssert($checkoutCart,
$cart, $requireReload);
95 if (
$cart->hasData(
'subtotal')) {
96 $this->assertSubtotalInShoppingCart->processAssert($checkoutCart,
$cart, $requireReload);
98 if (
$cart->hasData(
'grand_total')) {
99 $this->assertGrandTotalInShoppingCart->processAssert($checkoutCart,
$cart, $requireReload);
101 if (
$cart->hasData(
'shipping_amount')) {
102 $this->assertShippingInShoppingCart->processAssert($checkoutCart,
$cart, $requireReload);
113 return 'Grand total, subtotal and tax, shipping amounts in the shopping cart equal to expected from data set.';
processAssert(CheckoutCart $checkoutCart, Cart $cart, $requireReload=true)
$assertShippingInShoppingCart
__construct(ObjectManager $objectManager, EventManagerInterface $eventManager, AssertSubtotalInShoppingCart $assertSubtotalInShoppingCart, AssertGrandTotalInShoppingCart $assertGrandTotalInShoppingCart, AssertTaxInShoppingCart $assertTaxInShoppingCart, AssertShippingInShoppingCart $assertShippingInShoppingCart)
$assertGrandTotalInShoppingCart
$assertSubtotalInShoppingCart