示例#1
0
 /**
  * Get cart prices.
  *
  * @return array
  */
 protected function getCartItemPrice()
 {
     $prices = [];
     $this->catalogProductView->getViewBlock()->clickAddToCart();
     $productWeeeItem = $this->checkoutCart->getWeeeCartBlock()->getCartItem($this->product);
     $productWeeeItem->openFpt();
     foreach ($this->expectedPrices['cartItem'] as $key => $type) {
         $prices[$key] = $productWeeeItem->getCartItemTypePrice($key);
     }
     return $prices;
 }