Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertBundleProductInCart.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Checkout\Test\Page\CheckoutCart;
11 use Magento\Mtf\Fixture\FixtureInterface;
12 
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 }
countPrices(FixtureInterface $product, CheckoutCart $checkoutCart)