diff --git a/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/braintree-paypal.js b/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/braintree-paypal.js
index ed15f9822b18d..3b5ea0e29bbb9 100644
--- a/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/braintree-paypal.js
+++ b/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/braintree-paypal.js
@@ -103,7 +103,7 @@ define(
}
});
} else {
- messageList.addErrorMessage({'message': 'Can not initialize PayPal (Braintree)'});
+ this.messageContainer.addErrorMessage({'message': $t('Can not initialize PayPal (Braintree)')});
}
},
isValid: function () {
diff --git a/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js b/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js
index 1a7327d6460ae..57ea5d8e6f5ef 100644
--- a/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js
+++ b/app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js
@@ -103,7 +103,7 @@ define(
clientToken: this.clientToken
});
} else {
- messageList.addErrorMessage({'message': 'Can not initialize PayPal (Braintree)'});
+ this.messageContainer.addErrorMessage({'message': $t('Can not initialize PayPal (Braintree)')});
}
return this;
@@ -116,7 +116,7 @@ define(
var self = this,
cardInfo = null;
- messageList.clear();
+ this.messageContainer.clear();
this.quoteBaseGrandTotals = quote.totals().base_grand_total;
this.isPaymentProcessing = $.Deferred();
@@ -194,9 +194,9 @@ define(
this.paymentMethodNonce('');
if (_.isObject(error)) {
- messageList.addErrorMessage(error);
+ this.messageContainer.addErrorMessage(error);
} else {
- messageList.addErrorMessage({
+ this.messageContainer.addErrorMessage({
message: error
});
}
diff --git a/app/code/Magento/Braintree/view/frontend/web/template/payment/braintree-paypal-form.html b/app/code/Magento/Braintree/view/frontend/web/template/payment/braintree-paypal-form.html
index 62440177a6c06..683f62b9bb624 100644
--- a/app/code/Magento/Braintree/view/frontend/web/template/payment/braintree-paypal-form.html
+++ b/app/code/Magento/Braintree/view/frontend/web/template/payment/braintree-paypal-form.html
@@ -17,6 +17,9 @@
+
+
+
diff --git a/app/code/Magento/Checkout/Block/Adminhtml/CartTab.php b/app/code/Magento/Checkout/Block/Adminhtml/CartTab.php
index 38abcd03b81c4..b45c128627026 100644
--- a/app/code/Magento/Checkout/Block/Adminhtml/CartTab.php
+++ b/app/code/Magento/Checkout/Block/Adminhtml/CartTab.php
@@ -14,6 +14,7 @@
* Class CartTab
*
* @package Magento\Checkout\Block\Adminhtml
+ * @codeCoverageIgnore
*/
class CartTab extends TabWrapper
{
diff --git a/app/code/Magento/Checkout/Block/Cart.php b/app/code/Magento/Checkout/Block/Cart.php
index a3401d0a4b271..1a95a130f8ef1 100644
--- a/app/code/Magento/Checkout/Block/Cart.php
+++ b/app/code/Magento/Checkout/Block/Cart.php
@@ -35,6 +35,7 @@ class Cart extends \Magento\Checkout\Block\Cart\AbstractCart
* @param \Magento\Checkout\Helper\Cart $cartHelper
* @param \Magento\Framework\App\Http\Context $httpContext
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -55,6 +56,7 @@ public function __construct(
/**
* Prepare Quote Item Product URLs
*
+ * @codeCoverageIgnore
* @return void
*/
protected function _construct()
@@ -106,6 +108,7 @@ public function prepareItemUrls()
}
/**
+ * @codeCoverageIgnore
* @return bool
*/
public function hasError()
@@ -114,6 +117,7 @@ public function hasError()
}
/**
+ * @codeCoverageIgnore
* @return int
*/
public function getItemsSummaryQty()
@@ -122,6 +126,7 @@ public function getItemsSummaryQty()
}
/**
+ * @codeCoverageIgnore
* @return bool
*/
public function isWishlistActive()
@@ -140,6 +145,7 @@ public function isWishlistActive()
}
/**
+ * @codeCoverageIgnore
* @return string
*/
public function getCheckoutUrl()
@@ -165,6 +171,7 @@ public function getContinueShoppingUrl()
/**
* @return bool
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
*/
public function getIsVirtual()
@@ -218,6 +225,7 @@ public function getItems()
}
/**
+ * @codeCoverageIgnore
* @return int
*/
public function getItemsCount()
diff --git a/app/code/Magento/Checkout/Block/Cart/AbstractCart.php b/app/code/Magento/Checkout/Block/Cart/AbstractCart.php
index be743df6033e1..95b5cda03e38a 100644
--- a/app/code/Magento/Checkout/Block/Cart/AbstractCart.php
+++ b/app/code/Magento/Checkout/Block/Cart/AbstractCart.php
@@ -49,6 +49,7 @@ class AbstractCart extends \Magento\Framework\View\Element\Template
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -114,6 +115,7 @@ public function getQuote()
* Get all cart items
*
* @return array
+ * @codeCoverageIgnore
*/
public function getItems()
{
@@ -134,6 +136,7 @@ public function getItemHtml(\Magento\Quote\Model\Quote\Item $item)
/**
* @return array
+ * @codeCoverageIgnore
*/
public function getTotals()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Additional/Info.php b/app/code/Magento/Checkout/Block/Cart/Additional/Info.php
index 0f05230d31431..cbf3dba50afcc 100644
--- a/app/code/Magento/Checkout/Block/Cart/Additional/Info.php
+++ b/app/code/Magento/Checkout/Block/Cart/Additional/Info.php
@@ -16,6 +16,7 @@ class Info extends \Magento\Framework\View\Element\Template
/**
* @param \Magento\Quote\Model\Quote\Item\AbstractItem $item
* @return $this
+ * @codeCoverageIgnore
*/
public function setItem(\Magento\Quote\Model\Quote\Item\AbstractItem $item)
{
@@ -25,6 +26,7 @@ public function setItem(\Magento\Quote\Model\Quote\Item\AbstractItem $item)
/**
* @return \Magento\Quote\Model\Quote\Item\AbstractItem
+ * @codeCoverageIgnore
*/
public function getItem()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Coupon.php b/app/code/Magento/Checkout/Block/Cart/Coupon.php
index f89fb41b5c958..ad301bc3ce3b1 100644
--- a/app/code/Magento/Checkout/Block/Cart/Coupon.php
+++ b/app/code/Magento/Checkout/Block/Cart/Coupon.php
@@ -12,6 +12,7 @@ class Coupon extends \Magento\Checkout\Block\Cart\AbstractCart
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -25,6 +26,7 @@ public function __construct(
/**
* @return string
+ * @codeCoverageIgnore
*/
public function getCouponCode()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Crosssell.php b/app/code/Magento/Checkout/Block/Cart/Crosssell.php
index 508bbd6857994..2eb54a9bbddd1 100644
--- a/app/code/Magento/Checkout/Block/Cart/Crosssell.php
+++ b/app/code/Magento/Checkout/Block/Cart/Crosssell.php
@@ -55,6 +55,7 @@ class Crosssell extends \Magento\Catalog\Block\Product\AbstractProduct
* @param StockHelper $stockHelper
* @param array $data
*
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -131,6 +132,7 @@ public function getItems()
* Count items
*
* @return int
+ * @codeCoverageIgnore
*/
public function getItemCount()
{
@@ -162,6 +164,7 @@ protected function _getCartProductIds()
* Get last product ID that was added to cart and remove this information from session
*
* @return int
+ * @codeCoverageIgnore
*/
protected function _getLastAddedProductId()
{
@@ -172,6 +175,7 @@ protected function _getLastAddedProductId()
* Get quote instance
*
* @return \Magento\Quote\Model\Quote
+ * @codeCoverageIgnore
*/
public function getQuote()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Item/Renderer.php b/app/code/Magento/Checkout/Block/Cart/Item/Renderer.php
index d22100a831791..74865f2a8836d 100644
--- a/app/code/Magento/Checkout/Block/Cart/Item/Renderer.php
+++ b/app/code/Magento/Checkout/Block/Cart/Item/Renderer.php
@@ -102,6 +102,7 @@ class Renderer extends \Magento\Framework\View\Element\Template implements
* @param InterpretationStrategyInterface $messageInterpretationStrategy
* @param array $data
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -132,6 +133,7 @@ public function __construct(
*
* @param AbstractItem $item
* @return $this
+ * @codeCoverageIgnore
*/
public function setItem(AbstractItem $item)
{
@@ -143,6 +145,7 @@ public function setItem(AbstractItem $item)
* Get quote item
*
* @return AbstractItem
+ * @codeCoverageIgnore
*/
public function getItem()
{
@@ -153,6 +156,7 @@ public function getItem()
* Get item product
*
* @return \Magento\Catalog\Model\Product
+ * @codeCoverageIgnore
*/
public function getProduct()
{
@@ -163,6 +167,7 @@ public function getProduct()
* Identify the product from which thumbnail should be taken.
*
* @return \Magento\Catalog\Model\Product
+ * @codeCoverageIgnore
*/
public function getProductForThumbnail()
{
@@ -172,6 +177,7 @@ public function getProductForThumbnail()
/**
* @param string $productUrl
* @return $this
+ * @codeCoverageIgnore
*/
public function overrideProductUrl($productUrl)
{
@@ -265,6 +271,7 @@ public function getProductOptions()
* Get list of all otions for product
*
* @return array
+ * @codeCoverageIgnore
*/
public function getOptionList()
{
@@ -288,6 +295,7 @@ public function getQty()
* Get checkout session
*
* @return \Magento\Checkout\Model\Session
+ * @codeCoverageIgnore
*/
public function getCheckoutSession()
{
@@ -368,6 +376,7 @@ public function getFormatedOptionValue($optionValue)
* Check whether Product is visible in site
*
* @return bool
+ * @codeCoverageIgnore
*/
public function isProductVisible()
{
@@ -378,6 +387,7 @@ public function isProductVisible()
* Return product additional information block
*
* @return AbstractBlock
+ * @codeCoverageIgnore
*/
public function getProductAdditionalInformationBlock()
{
@@ -389,6 +399,7 @@ public function getProductAdditionalInformationBlock()
*
* @param bool $strict
* @return $this
+ * @codeCoverageIgnore
*/
public function setQtyMode($strict)
{
@@ -401,6 +412,7 @@ public function setQtyMode($strict)
*
* @param bool $ignore
* @return $this
+ * @codeCoverageIgnore
*/
public function setIgnoreProductUrl($ignore = true)
{
@@ -451,6 +463,7 @@ public function getProductPriceHtml(\Magento\Catalog\Model\Product $product)
/**
* @return \Magento\Framework\Pricing\Render
+ * @codeCoverageIgnore
*/
protected function getPriceRender()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions.php b/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions.php
index 22d24d6663278..0104e00b1c9d5 100644
--- a/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions.php
+++ b/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions.php
@@ -20,6 +20,7 @@ class Actions extends Text
* Returns current quote item
*
* @return AbstractItem
+ * @codeCoverageIgnore
*/
public function getItem()
{
@@ -31,6 +32,7 @@ public function getItem()
*
* @param AbstractItem $item
* @return $this
+ * @codeCoverageIgnore
*/
public function setItem(AbstractItem $item)
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Generic.php b/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Generic.php
index 5655dfe6792dd..ff69749124343 100644
--- a/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Generic.php
+++ b/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Generic.php
@@ -19,6 +19,7 @@ class Generic extends Template
* Returns current quote item
*
* @return AbstractItem
+ * @codeCoverageIgnore
*/
public function getItem()
{
@@ -30,6 +31,7 @@ public function getItem()
*
* @param AbstractItem $item
* @return $this
+ * @codeCoverageIgnore
*/
public function setItem(AbstractItem $item)
{
@@ -41,6 +43,7 @@ public function setItem(AbstractItem $item)
* Check if product is visible in site visibility
*
* @return bool
+ * @codeCoverageIgnore
*/
public function isProductVisibleInSiteVisibility()
{
@@ -51,6 +54,7 @@ public function isProductVisibleInSiteVisibility()
* Check if cart item is virtual
*
* @return bool
+ * @codeCoverageIgnore
*/
public function isVirtual()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Remove.php b/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Remove.php
index 066afb6a08223..784be962a1d2f 100644
--- a/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Remove.php
+++ b/app/code/Magento/Checkout/Block/Cart/Item/Renderer/Actions/Remove.php
@@ -19,6 +19,7 @@ class Remove extends Generic
* @param Template\Context $context
* @param Cart $cartHelper
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
Template\Context $context,
@@ -33,6 +34,7 @@ public function __construct(
* Get delete item POST JSON
*
* @return string
+ * @codeCoverageIgnore
*/
public function getDeletePostJson()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/LayoutProcessor.php b/app/code/Magento/Checkout/Block/Cart/LayoutProcessor.php
index 6026d857ee0c2..bbdba7177576e 100644
--- a/app/code/Magento/Checkout/Block/Cart/LayoutProcessor.php
+++ b/app/code/Magento/Checkout/Block/Cart/LayoutProcessor.php
@@ -31,6 +31,7 @@ class LayoutProcessor implements \Magento\Checkout\Block\Checkout\LayoutProcesso
* @param \Magento\Checkout\Block\Checkout\AttributeMerger $merger
* @param \Magento\Directory\Model\Resource\Country\Collection $countryCollection
* @param \Magento\Directory\Model\Resource\Region\Collection $regionCollection
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Checkout\Block\Checkout\AttributeMerger $merger,
@@ -46,6 +47,7 @@ public function __construct(
* Show City in Shipping Estimation
*
* @return bool
+ * @codeCoverageIgnore
*/
protected function isCityActive()
{
@@ -56,6 +58,7 @@ protected function isCityActive()
* Show State in Shipping Estimation
*
* @return bool
+ * @codeCoverageIgnore
*/
protected function isStateActive()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Link.php b/app/code/Magento/Checkout/Block/Cart/Link.php
index 1abffad414609..91ea9a2509599 100644
--- a/app/code/Magento/Checkout/Block/Cart/Link.php
+++ b/app/code/Magento/Checkout/Block/Cart/Link.php
@@ -27,6 +27,7 @@ class Link extends \Magento\Framework\View\Element\Html\Link
* @param \Magento\Framework\Module\Manager $moduleManager
* @param \Magento\Checkout\Helper\Cart $cartHelper
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -41,6 +42,7 @@ public function __construct(
/**
* @return string
+ * @codeCoverageIgnore
*/
public function getLabel()
{
@@ -49,6 +51,7 @@ public function getLabel()
/**
* @return string
+ * @codeCoverageIgnore
*/
public function getHref()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Shipping.php b/app/code/Magento/Checkout/Block/Cart/Shipping.php
index 7c56c8dc18269..e462c3664f1e1 100644
--- a/app/code/Magento/Checkout/Block/Cart/Shipping.php
+++ b/app/code/Magento/Checkout/Block/Cart/Shipping.php
@@ -27,6 +27,7 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart
* @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider
* @param array $layoutProcessors
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -46,6 +47,7 @@ public function __construct(
* Retrieve checkout configuration
*
* @return array
+ * @codeCoverageIgnore
*/
public function getCheckoutConfig()
{
@@ -69,6 +71,7 @@ public function getJsLayout()
* Get base url for block.
*
* @return string
+ * @codeCoverageIgnore
*/
public function getBaseUrl()
{
diff --git a/app/code/Magento/Checkout/Block/Cart/Sidebar.php b/app/code/Magento/Checkout/Block/Cart/Sidebar.php
index e15608c17125f..ed3a1cf671b15 100644
--- a/app/code/Magento/Checkout/Block/Cart/Sidebar.php
+++ b/app/code/Magento/Checkout/Block/Cart/Sidebar.php
@@ -29,6 +29,7 @@ class Sidebar extends AbstractCart
* @param \Magento\Catalog\Helper\Image $imageHelper
* @param \Magento\Customer\CustomerData\JsLayoutDataProviderPoolInterface $jsLayoutDataProvider
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -79,6 +80,7 @@ public function getImageHtmlTemplate()
/**
* Get one page checkout page url
*
+ * @codeCoverageIgnore
* @return string
*/
public function getCheckoutUrl()
@@ -90,6 +92,7 @@ public function getCheckoutUrl()
* Get shopping cart page url
*
* @return string
+ * @codeCoverageIgnore
*/
public function getShoppingCartUrl()
{
@@ -100,6 +103,7 @@ public function getShoppingCartUrl()
* Get update cart item url
*
* @return string
+ * @codeCoverageIgnore
*/
public function getUpdateItemQtyUrl()
{
@@ -110,6 +114,7 @@ public function getUpdateItemQtyUrl()
* Get remove cart item url
*
* @return string
+ * @codeCoverageIgnore
*/
public function getRemoveItemUrl()
{
@@ -120,6 +125,7 @@ public function getRemoveItemUrl()
* Define if Mini Shopping Cart Pop-Up Menu enabled
*
* @return bool
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
*/
public function getIsNeedToDisplaySideBar()
@@ -147,6 +153,7 @@ public function getTotalsCache()
/**
* Retrieve subtotal block html
*
+ * @codeCoverageIgnore
* @return string
*/
public function getTotalsHtml()
@@ -157,6 +164,7 @@ public function getTotalsHtml()
/**
* Return base url.
*
+ * @codeCoverageIgnore
* @return string
*/
public function getBaseUrl()
diff --git a/app/code/Magento/Checkout/Block/Cart/Totals.php b/app/code/Magento/Checkout/Block/Cart/Totals.php
index 8ac56b13a1f48..ba47ca362ad2a 100644
--- a/app/code/Magento/Checkout/Block/Cart/Totals.php
+++ b/app/code/Magento/Checkout/Block/Cart/Totals.php
@@ -42,6 +42,7 @@ class Totals extends \Magento\Checkout\Block\Cart\AbstractCart
* @param \Magento\Sales\Model\Config $salesConfig
* @param array $layoutProcessors
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -82,6 +83,7 @@ public function getTotals()
/**
* @param array $value
* @return $this
+ * @codeCoverageIgnore
*/
public function setTotals($value)
{
diff --git a/app/code/Magento/Checkout/Block/Cart/ValidationMessages.php b/app/code/Magento/Checkout/Block/Cart/ValidationMessages.php
index 169cb66398883..f33a1a5034ed2 100644
--- a/app/code/Magento/Checkout/Block/Cart/ValidationMessages.php
+++ b/app/code/Magento/Checkout/Block/Cart/ValidationMessages.php
@@ -27,6 +27,7 @@ class ValidationMessages extends \Magento\Framework\View\Element\Messages
* @param \Magento\Checkout\Helper\Cart $cartHelper
* @param \Magento\Framework\Locale\CurrencyInterface $currency
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
diff --git a/app/code/Magento/Checkout/Block/Link.php b/app/code/Magento/Checkout/Block/Link.php
index a356cf1cbcc0e..d35b25ceb2e42 100644
--- a/app/code/Magento/Checkout/Block/Link.php
+++ b/app/code/Magento/Checkout/Block/Link.php
@@ -27,6 +27,7 @@ class Link extends \Magento\Framework\View\Element\Html\Link
* @param \Magento\Framework\Module\Manager $moduleManager
* @param \Magento\Checkout\Helper\Data $checkoutHelper
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
@@ -41,6 +42,7 @@ public function __construct(
/**
* @return string
+ * @codeCoverageIgnore
*/
public function getHref()
{
diff --git a/app/code/Magento/Checkout/Block/Onepage.php b/app/code/Magento/Checkout/Block/Onepage.php
index 87fe4a804e819..bf573b0ffd115 100644
--- a/app/code/Magento/Checkout/Block/Onepage.php
+++ b/app/code/Magento/Checkout/Block/Onepage.php
@@ -56,6 +56,7 @@ class Onepage extends \Magento\Checkout\Block\Onepage\AbstractOnepage
* @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider
* @param LayoutProcessorInterface[] $layoutProcessors
* @param array $data
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -111,6 +112,7 @@ public function getJsLayout()
* Retrieve form key
*
* @return string
+ * @codeCoverageIgnore
*/
public function getFormKey()
{
@@ -121,6 +123,7 @@ public function getFormKey()
* Retrieve checkout configuration
*
* @return array
+ * @codeCoverageIgnore
*/
public function getCheckoutConfig()
{
@@ -131,6 +134,7 @@ public function getCheckoutConfig()
* Get base url for block.
*
* @return string
+ * @codeCoverageIgnore
*/
public function getBaseUrl()
{
diff --git a/app/code/Magento/Checkout/Block/QuoteShortcutButtons.php b/app/code/Magento/Checkout/Block/QuoteShortcutButtons.php
index e323f497ac8af..654ca8c066749 100644
--- a/app/code/Magento/Checkout/Block/QuoteShortcutButtons.php
+++ b/app/code/Magento/Checkout/Block/QuoteShortcutButtons.php
@@ -18,6 +18,7 @@ class QuoteShortcutButtons extends \Magento\Catalog\Block\ShortcutButtons
* @param Template\Context $context
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
Template\Context $context,
diff --git a/app/code/Magento/Checkout/Block/Registration.php b/app/code/Magento/Checkout/Block/Registration.php
index 60ae21ce65721..dd2b4dd076dc4 100644
--- a/app/code/Magento/Checkout/Block/Registration.php
+++ b/app/code/Magento/Checkout/Block/Registration.php
@@ -48,6 +48,7 @@ class Registration extends \Magento\Framework\View\Element\Template
* @param \Magento\Sales\Api\OrderRepositoryInterface $orderRepository
* @param \Magento\Sales\Model\Order\Address\Validator $addressValidator
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
Template\Context $context,
@@ -72,6 +73,7 @@ public function __construct(
* Retrieve current email address
*
* @return string
+ * @codeCoverageIgnore
*/
public function getEmailAddress()
{
@@ -82,6 +84,7 @@ public function getEmailAddress()
* Retrieve account creation url
*
* @return string
+ * @codeCoverageIgnore
*/
public function getCreateAccountUrl()
{
diff --git a/app/code/Magento/Checkout/Block/Success.php b/app/code/Magento/Checkout/Block/Success.php
index dd09b399da52a..c397c4afd5892 100644
--- a/app/code/Magento/Checkout/Block/Success.php
+++ b/app/code/Magento/Checkout/Block/Success.php
@@ -16,6 +16,7 @@ class Success extends \Magento\Framework\View\Element\Template
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Sales\Model\OrderFactory $orderFactory
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Account/Create.php b/app/code/Magento/Checkout/Controller/Account/Create.php
index 5906f1c1c3782..4e8514699c1fd 100644
--- a/app/code/Magento/Checkout/Controller/Account/Create.php
+++ b/app/code/Magento/Checkout/Controller/Account/Create.php
@@ -30,6 +30,7 @@ class Create extends \Magento\Framework\App\Action\Action
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Sales\Api\OrderCustomerManagementInterface $orderCustomerService
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Action.php b/app/code/Magento/Checkout/Controller/Action.php
index 0306ebf24acd7..c4f61479e895d 100644
--- a/app/code/Magento/Checkout/Controller/Action.php
+++ b/app/code/Magento/Checkout/Controller/Action.php
@@ -34,6 +34,7 @@ abstract class Action extends \Magento\Framework\App\Action\Action
* @param \Magento\Customer\Model\Session $customerSession
* @param CustomerRepositoryInterface $customerRepository
* @param AccountManagementInterface $accountManagement
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Cart.php b/app/code/Magento/Checkout/Controller/Cart.php
index 5165eaab79b78..a817fe44d6b11 100644
--- a/app/code/Magento/Checkout/Controller/Cart.php
+++ b/app/code/Magento/Checkout/Controller/Cart.php
@@ -45,6 +45,7 @@ abstract class Cart extends \Magento\Framework\App\Action\Action implements View
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
* @param CustomerCart $cart
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Cart/Add.php b/app/code/Magento/Checkout/Controller/Cart/Add.php
index d66756489b2bc..2a3b47cad86a5 100644
--- a/app/code/Magento/Checkout/Controller/Cart/Add.php
+++ b/app/code/Magento/Checkout/Controller/Cart/Add.php
@@ -28,6 +28,7 @@ class Add extends \Magento\Checkout\Controller\Cart
* @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
* @param CustomerCart $cart
* @param ProductRepositoryInterface $productRepository
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Cart/Configure.php b/app/code/Magento/Checkout/Controller/Cart/Configure.php
index 6ed2fdd5084be..bd614ec3110aa 100644
--- a/app/code/Magento/Checkout/Controller/Cart/Configure.php
+++ b/app/code/Magento/Checkout/Controller/Cart/Configure.php
@@ -23,6 +23,7 @@ class Configure extends \Magento\Checkout\Controller\Cart
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
* @param \Magento\Checkout\Model\Cart $cart
+ * @codeCoverageIgnore
*/
public function __construct(
Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Cart/CouponPost.php b/app/code/Magento/Checkout/Controller/Cart/CouponPost.php
index d294ee5bc4c08..2496709c162c8 100644
--- a/app/code/Magento/Checkout/Controller/Cart/CouponPost.php
+++ b/app/code/Magento/Checkout/Controller/Cart/CouponPost.php
@@ -30,6 +30,7 @@ class CouponPost extends \Magento\Checkout\Controller\Cart
* @param \Magento\Checkout\Model\Cart $cart
* @param \Magento\SalesRule\Model\CouponFactory $couponFactory
* @param \Magento\Quote\Model\QuoteRepository $quoteRepository
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Cart/EstimatePost.php b/app/code/Magento/Checkout/Controller/Cart/EstimatePost.php
index ce6bbc95511f5..2ce3a8805e8db 100644
--- a/app/code/Magento/Checkout/Controller/Cart/EstimatePost.php
+++ b/app/code/Magento/Checkout/Controller/Cart/EstimatePost.php
@@ -23,6 +23,7 @@ class EstimatePost extends \Magento\Checkout\Controller\Cart
* @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
* @param CustomerCart $cart
* @param \Magento\Quote\Model\QuoteRepository $quoteRepository
+ * @codeCoverageIgnore
*/
public function __construct(
Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Cart/Index.php b/app/code/Magento/Checkout/Controller/Cart/Index.php
index 36c42488f0f1b..1486c2b8487b5 100644
--- a/app/code/Magento/Checkout/Controller/Cart/Index.php
+++ b/app/code/Magento/Checkout/Controller/Cart/Index.php
@@ -22,6 +22,7 @@ class Index extends \Magento\Checkout\Controller\Cart
* @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
* @param \Magento\Checkout\Model\Cart $cart
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Noroute/Index.php b/app/code/Magento/Checkout/Controller/Noroute/Index.php
index c0da4714e24a9..e892582009403 100644
--- a/app/code/Magento/Checkout/Controller/Noroute/Index.php
+++ b/app/code/Magento/Checkout/Controller/Noroute/Index.php
@@ -15,6 +15,7 @@ class Index extends \Magento\Framework\App\Action\Action
*
* @throws NotFoundException
* @return void
+ * @codeCoverageIgnore
*/
public function execute()
{
diff --git a/app/code/Magento/Checkout/Controller/Onepage.php b/app/code/Magento/Checkout/Controller/Onepage.php
index f75a842e688cc..38e141855f3f1 100644
--- a/app/code/Magento/Checkout/Controller/Onepage.php
+++ b/app/code/Magento/Checkout/Controller/Onepage.php
@@ -97,6 +97,7 @@ abstract class Onepage extends Action
* @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
* @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
*
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -214,6 +215,7 @@ protected function _getHtmlByHandle($handle)
* Get shipping method step html
*
* @return string
+ * @codeCoverageIgnore
*/
protected function _getShippingMethodsHtml()
{
@@ -224,6 +226,7 @@ protected function _getShippingMethodsHtml()
* Get payment method step html
*
* @return string
+ * @codeCoverageIgnore
*/
protected function _getPaymentMethodsHtml()
{
@@ -251,6 +254,7 @@ protected function getProgressHtml($checkoutStep = '')
* Get one page checkout model
*
* @return \Magento\Checkout\Model\Type\Onepage
+ * @codeCoverageIgnore
*/
public function getOnepage()
{
diff --git a/app/code/Magento/Checkout/Controller/ShippingRates/Index.php b/app/code/Magento/Checkout/Controller/ShippingRates/Index.php
index 91fe0d8f962b9..c407b0bab657f 100644
--- a/app/code/Magento/Checkout/Controller/ShippingRates/Index.php
+++ b/app/code/Magento/Checkout/Controller/ShippingRates/Index.php
@@ -25,6 +25,7 @@ class Index extends \Magento\Framework\App\Action\Action
/**
* @param Context $context
* @param \Magento\Checkout\Model\Session $session
+ * @codeCoverageIgnore
*/
public function __construct(
Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Sidebar/RemoveItem.php b/app/code/Magento/Checkout/Controller/Sidebar/RemoveItem.php
index 10ad9a7bb71b6..0eac880fcbdc1 100644
--- a/app/code/Magento/Checkout/Controller/Sidebar/RemoveItem.php
+++ b/app/code/Magento/Checkout/Controller/Sidebar/RemoveItem.php
@@ -42,6 +42,7 @@ class RemoveItem extends Action
* @param LoggerInterface $logger
* @param Data $jsonHelper
* @param PageFactory $resultPageFactory
+ * @codeCoverageIgnore
*/
public function __construct(
Context $context,
diff --git a/app/code/Magento/Checkout/Controller/Sidebar/UpdateItemQty.php b/app/code/Magento/Checkout/Controller/Sidebar/UpdateItemQty.php
index 656ea11ad773b..e5504082d6f3a 100644
--- a/app/code/Magento/Checkout/Controller/Sidebar/UpdateItemQty.php
+++ b/app/code/Magento/Checkout/Controller/Sidebar/UpdateItemQty.php
@@ -35,6 +35,7 @@ class UpdateItemQty extends Action
* @param Sidebar $sidebar
* @param LoggerInterface $logger
* @param Data $jsonHelper
+ * @codeCoverageIgnore
*/
public function __construct(
Context $context,
diff --git a/app/code/Magento/Checkout/CustomerData/Cart.php b/app/code/Magento/Checkout/CustomerData/Cart.php
index fc37830b2d672..ddc6753581db8 100644
--- a/app/code/Magento/Checkout/CustomerData/Cart.php
+++ b/app/code/Magento/Checkout/CustomerData/Cart.php
@@ -61,6 +61,7 @@ class Cart extends \Magento\Framework\DataObject implements SectionSourceInterfa
* @param ItemPoolInterface $itemPoolInterface
* @param \Magento\Framework\View\LayoutInterface $layout
* @param array $data
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Checkout\Model\Session $checkoutSession,
diff --git a/app/code/Magento/Checkout/CustomerData/DefaultItem.php b/app/code/Magento/Checkout/CustomerData/DefaultItem.php
index 2689742183949..625e50927027b 100644
--- a/app/code/Magento/Checkout/CustomerData/DefaultItem.php
+++ b/app/code/Magento/Checkout/CustomerData/DefaultItem.php
@@ -42,6 +42,7 @@ class DefaultItem extends AbstractItem
* @param \Magento\Framework\UrlInterface $urlBuilder
* @param \Magento\Catalog\Helper\Product\ConfigurationPool $configurationPool
* @param \Magento\Checkout\Helper\Data $checkoutHelper
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Catalog\Helper\Image $imageHelper,
@@ -88,6 +89,7 @@ protected function doGetItemData()
* Get list of all options for product
*
* @return array
+ * @codeCoverageIgnore
*/
protected function getOptionList()
{
@@ -96,6 +98,7 @@ protected function getOptionList()
/**
* @return \Magento\Catalog\Model\Product
+ * @codeCoverageIgnore
*/
protected function getProductForThumbnail()
{
@@ -104,6 +107,7 @@ protected function getProductForThumbnail()
/**
* @return \Magento\Catalog\Model\Product
+ * @codeCoverageIgnore
*/
protected function getProduct()
{
diff --git a/app/code/Magento/Checkout/CustomerData/DirectoryData.php b/app/code/Magento/Checkout/CustomerData/DirectoryData.php
index 2cd840dca7ff8..d3e6702062146 100644
--- a/app/code/Magento/Checkout/CustomerData/DirectoryData.php
+++ b/app/code/Magento/Checkout/CustomerData/DirectoryData.php
@@ -20,6 +20,7 @@ class DirectoryData implements SectionSourceInterface
/**
* @param \Magento\Directory\Helper\Data $directoryHelper
+ * @codeCoverageIgnore
*/
public function __construct(\Magento\Directory\Helper\Data $directoryHelper)
{
diff --git a/app/code/Magento/Checkout/CustomerData/ItemPool.php b/app/code/Magento/Checkout/CustomerData/ItemPool.php
index e15c0e0b4d250..939131efc3d47 100644
--- a/app/code/Magento/Checkout/CustomerData/ItemPool.php
+++ b/app/code/Magento/Checkout/CustomerData/ItemPool.php
@@ -42,6 +42,7 @@ class ItemPool implements ItemPoolInterface
* @param ObjectManagerInterface $objectManager
* @param string $defaultItemId
* @param array $itemMap
+ * @codeCoverageIgnore
*/
public function __construct(
ObjectManagerInterface $objectManager,
@@ -55,6 +56,7 @@ public function __construct(
/**
* {@inheritdoc}
+ * @codeCoverageIgnore
*/
public function getItemData(Item $item)
{
diff --git a/app/code/Magento/Checkout/Helper/Cart.php b/app/code/Magento/Checkout/Helper/Cart.php
index 41f6273e2748a..96cdcc69c1138 100644
--- a/app/code/Magento/Checkout/Helper/Cart.php
+++ b/app/code/Magento/Checkout/Helper/Cart.php
@@ -41,6 +41,7 @@ class Cart extends \Magento\Framework\Url\Helper\Data
* @param \Magento\Framework\App\Helper\Context $context
* @param \Magento\Checkout\Model\Cart $checkoutCart
* @param \Magento\Checkout\Model\Session $checkoutSession
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Helper\Context $context,
@@ -56,6 +57,7 @@ public function __construct(
* Retrieve cart instance
*
* @return \Magento\Checkout\Model\Cart
+ * @codeCoverageIgnore
*/
public function getCart()
{
@@ -134,6 +136,7 @@ public function getDeletePostJson($item)
* Retrieve shopping cart url
*
* @return string
+ * @codeCoverageIgnore
*/
public function getCartUrl()
{
@@ -144,6 +147,7 @@ public function getCartUrl()
* Retrieve current quote instance
*
* @return \Magento\Quote\Model\Quote
+ * @codeCoverageIgnore
*/
public function getQuote()
{
@@ -154,6 +158,7 @@ public function getQuote()
* Get shopping cart items count
*
* @return int
+ * @codeCoverageIgnore
*/
public function getItemsCount()
{
@@ -164,6 +169,7 @@ public function getItemsCount()
* Get shopping cart summary qty
*
* @return int|float
+ * @codeCoverageIgnore
*/
public function getItemsQty()
{
@@ -174,6 +180,7 @@ public function getItemsQty()
* Get shopping cart items summary (include config settings)
*
* @return int|float
+ * @codeCoverageIgnore
*/
public function getSummaryCount()
{
@@ -185,6 +192,7 @@ public function getSummaryCount()
*
* @return bool
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
+ * @codeCoverageIgnore
*/
public function getIsVirtualQuote()
{
@@ -197,6 +205,7 @@ public function getIsVirtualQuote()
* @param int|string|\Magento\Store\Model\Store $store
* @return bool
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
+ * @codeCoverageIgnore
*/
public function getShouldRedirectToCart($store = null)
{
diff --git a/app/code/Magento/Checkout/Helper/Data.php b/app/code/Magento/Checkout/Helper/Data.php
index c701962ab2908..98d94906ab090 100644
--- a/app/code/Magento/Checkout/Helper/Data.php
+++ b/app/code/Magento/Checkout/Helper/Data.php
@@ -59,6 +59,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
* @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
* @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation
* @param PriceCurrencyInterface $priceCurrency
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\Helper\Context $context,
@@ -82,6 +83,7 @@ public function __construct(
* Retrieve checkout session model
*
* @return \Magento\Checkout\Model\Session
+ * @codeCoverageIgnore
*/
public function getCheckout()
{
@@ -92,6 +94,7 @@ public function getCheckout()
* Retrieve checkout quote model object
*
* @return \Magento\Quote\Model\Quote
+ * @codeCoverageIgnore
*/
public function getQuote()
{
@@ -377,6 +380,7 @@ public function isAllowedGuestCheckout(\Magento\Quote\Model\Quote $quote, $store
* Check if context is checkout
*
* @return bool
+ * @codeCoverageIgnore
*/
public function isContextCheckout()
{
@@ -387,6 +391,7 @@ public function isContextCheckout()
* Check if user must be logged during checkout process
*
* @return boolean
+ * @codeCoverageIgnore
*/
public function isCustomerMustBeLogged()
{
diff --git a/app/code/Magento/Checkout/Helper/ExpressRedirect.php b/app/code/Magento/Checkout/Helper/ExpressRedirect.php
index e99d2b37e598c..5ced2184a22ad 100644
--- a/app/code/Magento/Checkout/Helper/ExpressRedirect.php
+++ b/app/code/Magento/Checkout/Helper/ExpressRedirect.php
@@ -31,6 +31,7 @@ class ExpressRedirect extends \Magento\Framework\App\Helper\AbstractHelper
* @param \Magento\Framework\ObjectManagerInterface $objectManager
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Framework\App\Helper\Context $context
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\App\ActionFlag $actionFlag,
diff --git a/app/code/Magento/Checkout/Model/AgreementsValidator.php b/app/code/Magento/Checkout/Model/AgreementsValidator.php
index 031d2fd5a6275..7d36e924ca7cc 100644
--- a/app/code/Magento/Checkout/Model/AgreementsValidator.php
+++ b/app/code/Magento/Checkout/Model/AgreementsValidator.php
@@ -17,6 +17,7 @@ class AgreementsValidator implements \Magento\Checkout\Api\AgreementsValidatorIn
*
* @return bool
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ * @codeCoverageIgnore
*/
public function isValid($agreementIds = [])
{
diff --git a/app/code/Magento/Checkout/Model/Cart.php b/app/code/Magento/Checkout/Model/Cart.php
index 3e20a3e4bf1c2..952ee677f7c8f 100644
--- a/app/code/Magento/Checkout/Model/Cart.php
+++ b/app/code/Magento/Checkout/Model/Cart.php
@@ -103,6 +103,7 @@ class Cart extends DataObject implements CartInterface
* @param \Magento\Quote\Model\QuoteRepository $quoteRepository
* @param ProductRepositoryInterface $productRepository
* @param array $data
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -137,6 +138,7 @@ public function __construct(
* Get shopping cart resource model
*
* @return \Magento\Checkout\Model\Resource\Cart
+ * @codeCoverageIgnore
*/
protected function _getResource()
{
@@ -147,6 +149,7 @@ protected function _getResource()
* Retrieve checkout session model
*
* @return Session
+ * @codeCoverageIgnore
*/
public function getCheckoutSession()
{
@@ -157,6 +160,7 @@ public function getCheckoutSession()
* Retrieve customer session model
*
* @return \Magento\Customer\Model\Session
+ * @codeCoverageIgnore
*/
public function getCustomerSession()
{
@@ -212,6 +216,7 @@ public function getQuote()
*
* @param \Magento\Quote\Model\Quote $quote
* @return $this
+ * @codeCoverageIgnore
*/
public function setQuote(\Magento\Quote\Model\Quote $quote)
{
@@ -534,6 +539,7 @@ public function updateItems($data)
*
* @param int $itemId
* @return $this
+ * @codeCoverageIgnore
*/
public function removeItem($itemId)
{
@@ -567,6 +573,7 @@ public function save()
* Save cart (implement interface method)
*
* @return void
+ * @codeCoverageIgnore
*/
public function saveQuote()
{
@@ -577,6 +584,7 @@ public function saveQuote()
* Mark all quote items as deleted (empty shopping cart)
*
* @return $this
+ * @codeCoverageIgnore
*/
public function truncate()
{
@@ -632,6 +640,7 @@ public function getSummaryQty()
* Get shopping cart items count
*
* @return int
+ * @codeCoverageIgnore
*/
public function getItemsCount()
{
@@ -642,6 +651,7 @@ public function getItemsCount()
* Get shopping cart summary qty
*
* @return int|float
+ * @codeCoverageIgnore
*/
public function getItemsQty()
{
diff --git a/app/code/Magento/Checkout/Model/Cart/CollectQuote.php b/app/code/Magento/Checkout/Model/Cart/CollectQuote.php
index 170f2e6a9cb08..5b3f7841635c7 100644
--- a/app/code/Magento/Checkout/Model/Cart/CollectQuote.php
+++ b/app/code/Magento/Checkout/Model/Cart/CollectQuote.php
@@ -44,6 +44,7 @@ class CollectQuote
* @param \Magento\Quote\Api\Data\EstimateAddressInterfaceFactory $estimatedAddressFactory
* @param \Magento\Quote\Api\ShippingMethodManagementInterface $shippingMethodManager
* @param \Magento\Quote\Model\QuoteRepository $quoteRepository
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Customer\Model\Session $customerSession,
diff --git a/app/code/Magento/Checkout/Model/Cart/ImageProvider.php b/app/code/Magento/Checkout/Model/Cart/ImageProvider.php
index f49b267b88a8e..392483d88cd9e 100644
--- a/app/code/Magento/Checkout/Model/Cart/ImageProvider.php
+++ b/app/code/Magento/Checkout/Model/Cart/ImageProvider.php
@@ -23,6 +23,7 @@ class ImageProvider
/**
* @param \Magento\Quote\Api\CartItemRepositoryInterface $itemRepository
* @param \Magento\Checkout\CustomerData\ItemPoolInterface $itemPool
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Api\CartItemRepositoryInterface $itemRepository,
diff --git a/app/code/Magento/Checkout/Model/CompositeConfigProvider.php b/app/code/Magento/Checkout/Model/CompositeConfigProvider.php
index de31d67a03ada..ac45927bad57c 100644
--- a/app/code/Magento/Checkout/Model/CompositeConfigProvider.php
+++ b/app/code/Magento/Checkout/Model/CompositeConfigProvider.php
@@ -14,6 +14,7 @@ class CompositeConfigProvider implements ConfigProviderInterface
/**
* @param ConfigProviderInterface[] $configProviders
+ * @codeCoverageIgnore
*/
public function __construct(
array $configProviders
diff --git a/app/code/Magento/Checkout/Model/Config/Source/Cart/Summary.php b/app/code/Magento/Checkout/Model/Config/Source/Cart/Summary.php
index dbecaf5ce81dc..7291f5acafc69 100644
--- a/app/code/Magento/Checkout/Model/Config/Source/Cart/Summary.php
+++ b/app/code/Magento/Checkout/Model/Config/Source/Cart/Summary.php
@@ -9,6 +9,7 @@ class Summary implements \Magento\Framework\Option\ArrayInterface
{
/**
* @return array
+ * @codeCoverageIgnore
*/
public function toOptionArray()
{
diff --git a/app/code/Magento/Checkout/Model/DefaultConfigProvider.php b/app/code/Magento/Checkout/Model/DefaultConfigProvider.php
index 4a5664f0bc19c..a02455a1068aa 100644
--- a/app/code/Magento/Checkout/Model/DefaultConfigProvider.php
+++ b/app/code/Magento/Checkout/Model/DefaultConfigProvider.php
@@ -195,6 +195,7 @@ class DefaultConfigProvider implements ConfigProviderInterface
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Quote\Api\PaymentMethodManagementInterface $paymentMethodManagement
* @param UrlInterface $urlBuilder
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -310,6 +311,7 @@ public function getConfig()
* Is autocomplete enabled for storefront
*
* @return string
+ * @codeCoverageIgnore
*/
private function isAutocompleteEnabled()
{
@@ -429,6 +431,7 @@ protected function getFormattedOptionValue($item)
* Retrieve customer registration URL
*
* @return string
+ * @codeCoverageIgnore
*/
public function getRegisterUrl()
{
@@ -439,6 +442,7 @@ public function getRegisterUrl()
* Retrieve checkout URL
*
* @return string
+ * @codeCoverageIgnore
*/
public function getCheckoutUrl()
{
@@ -449,6 +453,7 @@ public function getCheckoutUrl()
* Retrieve checkout URL
*
* @return string
+ * @codeCoverageIgnore
*/
public function pageNotFoundUrl()
{
@@ -479,6 +484,7 @@ private function getSelectedShippingMethod()
* Retrieve store code
*
* @return string
+ * @codeCoverageIgnore
*/
private function getStoreCode()
{
@@ -489,6 +495,7 @@ private function getStoreCode()
* Check if guest checkout is allowed
*
* @return bool
+ * @codeCoverageIgnore
*/
private function isGuestCheckoutAllowed()
{
@@ -499,6 +506,7 @@ private function isGuestCheckoutAllowed()
* Check if customer is logged in
*
* @return bool
+ * @codeCoverageIgnore
*/
private function isCustomerLoggedIn()
{
@@ -509,6 +517,7 @@ private function isCustomerLoggedIn()
* Check if customer must be logged in to proceed with checkout
*
* @return bool
+ * @codeCoverageIgnore
*/
private function isCustomerLoginRequired()
{
@@ -519,6 +528,7 @@ private function isCustomerLoginRequired()
* Return forgot password URL
*
* @return string
+ * @codeCoverageIgnore
*/
private function getForgotPasswordUrl()
{
@@ -529,6 +539,7 @@ private function getForgotPasswordUrl()
* Return base static url.
*
* @return string
+ * @codeCoverageIgnore
*/
protected function getStaticBaseUrl()
{
diff --git a/app/code/Magento/Checkout/Model/GuestPaymentInformationManagement.php b/app/code/Magento/Checkout/Model/GuestPaymentInformationManagement.php
index dabf5e5e7e926..7da2c8f274b1a 100644
--- a/app/code/Magento/Checkout/Model/GuestPaymentInformationManagement.php
+++ b/app/code/Magento/Checkout/Model/GuestPaymentInformationManagement.php
@@ -48,6 +48,7 @@ class GuestPaymentInformationManagement implements \Magento\Checkout\Api\GuestPa
* @param PaymentInformationManagement $paymentInformationManagement
* @param \Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory
* @param CartRepositoryInterface $cartRepository
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Api\GuestBillingAddressManagementInterface $billingAddressManagement,
diff --git a/app/code/Magento/Checkout/Model/GuestShippingInformationManagement.php b/app/code/Magento/Checkout/Model/GuestShippingInformationManagement.php
index 3b976b5eb0154..74bdc5d095db8 100644
--- a/app/code/Magento/Checkout/Model/GuestShippingInformationManagement.php
+++ b/app/code/Magento/Checkout/Model/GuestShippingInformationManagement.php
@@ -20,6 +20,7 @@ class GuestShippingInformationManagement implements \Magento\Checkout\Api\GuestS
/**
* @param \Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory
* @param \Magento\Checkout\Api\ShippingInformationManagementInterface $shippingInformationManagement
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory,
diff --git a/app/code/Magento/Checkout/Model/GuestTotalsInformationManagement.php b/app/code/Magento/Checkout/Model/GuestTotalsInformationManagement.php
index 2c26b1b59ff7e..980e985924357 100644
--- a/app/code/Magento/Checkout/Model/GuestTotalsInformationManagement.php
+++ b/app/code/Magento/Checkout/Model/GuestTotalsInformationManagement.php
@@ -20,6 +20,7 @@ class GuestTotalsInformationManagement implements \Magento\Checkout\Api\GuestTot
/**
* @param \Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory
* @param \Magento\Checkout\Api\TotalsInformationManagementInterface $totalsInformationManagement
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory,
diff --git a/app/code/Magento/Checkout/Model/Layout/AbstractTotalsProcessor.php b/app/code/Magento/Checkout/Model/Layout/AbstractTotalsProcessor.php
index a5cf79f7f6a0c..e2cf2a51cdf07 100644
--- a/app/code/Magento/Checkout/Model/Layout/AbstractTotalsProcessor.php
+++ b/app/code/Magento/Checkout/Model/Layout/AbstractTotalsProcessor.php
@@ -18,6 +18,7 @@ abstract class AbstractTotalsProcessor
/**
* @param ScopeConfigInterface $scopeConfig
+ * @codeCoverageIgnore
*/
public function __construct(
ScopeConfigInterface $scopeConfig
diff --git a/app/code/Magento/Checkout/Model/Layout/DepersonalizePlugin.php b/app/code/Magento/Checkout/Model/Layout/DepersonalizePlugin.php
index 8726d579e4fea..f8dc545777cce 100644
--- a/app/code/Magento/Checkout/Model/Layout/DepersonalizePlugin.php
+++ b/app/code/Magento/Checkout/Model/Layout/DepersonalizePlugin.php
@@ -25,6 +25,7 @@ class DepersonalizePlugin
/**
* @param DepersonalizeChecker $depersonalizeChecker
* @param \Magento\Checkout\Model\Session $checkoutSession
+ * @codeCoverageIgnore
*/
public function __construct(
DepersonalizeChecker $depersonalizeChecker,
diff --git a/app/code/Magento/Checkout/Model/PaymentInformationManagement.php b/app/code/Magento/Checkout/Model/PaymentInformationManagement.php
index 67943d228886a..54fe9c13bd4df 100644
--- a/app/code/Magento/Checkout/Model/PaymentInformationManagement.php
+++ b/app/code/Magento/Checkout/Model/PaymentInformationManagement.php
@@ -42,6 +42,7 @@ class PaymentInformationManagement implements \Magento\Checkout\Api\PaymentInfor
* @param \Magento\Quote\Api\CartManagementInterface $cartManagement
* @param PaymentDetailsFactory $paymentDetailsFactory
* @param \Magento\Quote\Api\CartTotalRepositoryInterface $cartTotalsRepository
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Api\BillingAddressManagementInterface $billingAddressManagement,
diff --git a/app/code/Magento/Checkout/Model/Resource/Cart.php b/app/code/Magento/Checkout/Model/Resource/Cart.php
index 3d8592066ec8f..277ea32346871 100644
--- a/app/code/Magento/Checkout/Model/Resource/Cart.php
+++ b/app/code/Magento/Checkout/Model/Resource/Cart.php
@@ -16,6 +16,7 @@ class Cart extends \Magento\Framework\Model\Resource\Db\AbstractDb
* Model initialization
*
* @return void
+ * @codeCoverageIgnore
*/
protected function _construct()
{
diff --git a/app/code/Magento/Checkout/Model/Session.php b/app/code/Magento/Checkout/Model/Session.php
index 27733a64629c6..e988a2f93814e 100644
--- a/app/code/Magento/Checkout/Model/Session.php
+++ b/app/code/Magento/Checkout/Model/Session.php
@@ -111,6 +111,7 @@ class Session extends \Magento\Framework\Session\SessionManager
* @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
* @param QuoteIdMaskFactory $quoteIdMaskFactory
* @throws \Magento\Framework\Exception\SessionException
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -158,6 +159,7 @@ public function __construct(
*
* @param CustomerInterface|null $customer
* @return \Magento\Checkout\Model\Session
+ * @codeCoverageIgnore
*/
public function setCustomerData($customer)
{
@@ -169,6 +171,7 @@ public function setCustomerData($customer)
* Check whether current session has quote
*
* @return bool
+ * @codeCoverageIgnore
*/
public function hasQuote()
{
@@ -180,6 +183,7 @@ public function hasQuote()
*
* @param bool $load
* @return $this
+ * @codeCoverageIgnore
*/
public function setLoadInactive($load = true)
{
@@ -275,6 +279,7 @@ public function getQuote()
/**
* @return string
+ * @codeCoverageIgnore
*/
protected function _getQuoteIdKey()
{
@@ -284,6 +289,7 @@ protected function _getQuoteIdKey()
/**
* @param int $quoteId
* @return void
+ * @codeCoverageIgnore
*/
public function setQuoteId($quoteId)
{
@@ -292,6 +298,7 @@ public function setQuoteId($quoteId)
/**
* @return int
+ * @codeCoverageIgnore
*/
public function getQuoteId()
{
@@ -430,6 +437,7 @@ public function clearHelperData()
/**
* @return $this
+ * @codeCoverageIgnore
*/
public function resetCheckout()
{
@@ -492,6 +500,7 @@ public function restoreQuote()
/**
* @param $isQuoteMasked bool
* @return void
+ * @codeCoverageIgnore
*/
protected function setIsQuoteMasked($isQuoteMasked)
{
@@ -500,6 +509,7 @@ protected function setIsQuoteMasked($isQuoteMasked)
/**
* @return bool|null
+ * @codeCoverageIgnore
*/
protected function isQuoteMasked()
{
diff --git a/app/code/Magento/Checkout/Model/Session/SuccessValidator.php b/app/code/Magento/Checkout/Model/Session/SuccessValidator.php
index f1b57d4ba0fcf..70147f9c5695d 100644
--- a/app/code/Magento/Checkout/Model/Session/SuccessValidator.php
+++ b/app/code/Magento/Checkout/Model/Session/SuccessValidator.php
@@ -17,6 +17,7 @@ class SuccessValidator
/**
* @param \Magento\Checkout\Model\Session $checkoutSession
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Checkout\Model\Session $checkoutSession
diff --git a/app/code/Magento/Checkout/Model/ShippingInformationManagement.php b/app/code/Magento/Checkout/Model/ShippingInformationManagement.php
index bf669ce36a16e..338a8e053e344 100644
--- a/app/code/Magento/Checkout/Model/ShippingInformationManagement.php
+++ b/app/code/Magento/Checkout/Model/ShippingInformationManagement.php
@@ -71,6 +71,7 @@ class ShippingInformationManagement implements \Magento\Checkout\Api\ShippingInf
* @param Logger $logger
* @param \Magento\Customer\Api\AddressRepositoryInterface $addressRepository
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Api\PaymentMethodManagementInterface $paymentMethodManagement,
diff --git a/app/code/Magento/Checkout/Model/Sidebar.php b/app/code/Magento/Checkout/Model/Sidebar.php
index ee924310021e4..d985bd9589bd7 100644
--- a/app/code/Magento/Checkout/Model/Sidebar.php
+++ b/app/code/Magento/Checkout/Model/Sidebar.php
@@ -38,6 +38,7 @@ class Sidebar
* @param Cart $cart
* @param HelperData $helperData
* @param ResolverInterface $resolver
+ * @codeCoverageIgnore
*/
public function __construct(
Cart $cart,
diff --git a/app/code/Magento/Checkout/Model/TotalsInformationManagement.php b/app/code/Magento/Checkout/Model/TotalsInformationManagement.php
index 69731aa536e43..a79e3e1c3dfce 100644
--- a/app/code/Magento/Checkout/Model/TotalsInformationManagement.php
+++ b/app/code/Magento/Checkout/Model/TotalsInformationManagement.php
@@ -27,6 +27,7 @@ class TotalsInformationManagement implements \Magento\Checkout\Api\TotalsInforma
/**
* @param \Magento\Quote\Api\CartRepositoryInterface $cartRepository
* @param \Magento\Quote\Api\CartTotalRepositoryInterface $cartTotalRepository
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Quote\Api\CartRepositoryInterface $cartRepository,
diff --git a/app/code/Magento/Checkout/Model/Type/Onepage.php b/app/code/Magento/Checkout/Model/Type/Onepage.php
index ee9079e1713c4..e3c114f9c2209 100644
--- a/app/code/Magento/Checkout/Model/Type/Onepage.php
+++ b/app/code/Magento/Checkout/Model/Type/Onepage.php
@@ -192,6 +192,7 @@ class Onepage
* @param \Magento\Framework\Api\ExtensibleDataObjectConverter $extensibleDataObjectConverter
* @param \Magento\Quote\Model\QuoteManagement $quoteManagement
* @param \Magento\Framework\Api\DataObjectHelper $dataObjectHelper
+ * @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
@@ -254,6 +255,7 @@ public function __construct(
* Get frontend checkout session object
*
* @return \Magento\Checkout\Model\Session
+ * @codeCoverageIgnore
*/
public function getCheckout()
{
@@ -278,6 +280,7 @@ public function getQuote()
*
* @param \Magento\Quote\Model\Quote $quote
* @return $this
+ * @codeCoverageIgnore
*/
public function setQuote(\Magento\Quote\Model\Quote $quote)
{
@@ -289,6 +292,7 @@ public function setQuote(\Magento\Quote\Model\Quote $quote)
* Get customer session object
*
* @return \Magento\Customer\Model\Session
+ * @codeCoverageIgnore
*/
public function getCustomerSession()
{
@@ -982,6 +986,7 @@ public function saveOrder()
* @param string $email
* @param int $websiteId
* @return false|\Magento\Customer\Model\Customer
+ * @codeCoverageIgnore
*/
protected function _customerEmailExists($email, $websiteId = null)
{
diff --git a/app/code/Magento/Checkout/Observer/LoadCustomerQuote.php b/app/code/Magento/Checkout/Observer/LoadCustomerQuote.php
index 8d46ee533e9f6..ae83a93919707 100644
--- a/app/code/Magento/Checkout/Observer/LoadCustomerQuote.php
+++ b/app/code/Magento/Checkout/Observer/LoadCustomerQuote.php
@@ -21,6 +21,7 @@ class LoadCustomerQuote
/**
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \Magento\Framework\Message\ManagerInterface $messageManager
+ * @codeCoverageIgnore
*/
public function __construct(
\Magento\Checkout\Model\Session $checkoutSession,
diff --git a/app/code/Magento/Checkout/Observer/SalesQuoteSaveAfter.php b/app/code/Magento/Checkout/Observer/SalesQuoteSaveAfter.php
index 72a2c7ef00add..bb018abfa5939 100644
--- a/app/code/Magento/Checkout/Observer/SalesQuoteSaveAfter.php
+++ b/app/code/Magento/Checkout/Observer/SalesQuoteSaveAfter.php
@@ -15,6 +15,7 @@ class SalesQuoteSaveAfter
/**
* @param \Magento\Checkout\Model\Session $checkoutSession
+ * @codeCoverageIgnore
*/
public function __construct(\Magento\Checkout\Model\Session $checkoutSession)
{
diff --git a/app/code/Magento/Checkout/Observer/UnsetAll.php b/app/code/Magento/Checkout/Observer/UnsetAll.php
index b46685bc70dc9..c7290bcf76f80 100644
--- a/app/code/Magento/Checkout/Observer/UnsetAll.php
+++ b/app/code/Magento/Checkout/Observer/UnsetAll.php
@@ -15,6 +15,7 @@ class UnsetAll
/**
* @param \Magento\Checkout\Model\Session $checkoutSession
+ * @codeCoverageIgnore
*/
public function __construct(\Magento\Checkout\Model\Session $checkoutSession)
{
@@ -23,6 +24,7 @@ public function __construct(\Magento\Checkout\Model\Session $checkoutSession)
/**
* @return void
+ * @codeCoverageIgnore
*/
public function invoke()
{
diff --git a/app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml b/app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml
index 96bead5c8e45e..837c084da6f16 100644
--- a/app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml
+++ b/app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml
@@ -42,6 +42,11 @@
- authentication
-
+
-
+
- 0
+ - Magento_Checkout/js/view/authentication-messages
+ - messages
+
-
diff --git a/app/code/Magento/Checkout/view/frontend/templates/cart/item/default.phtml b/app/code/Magento/Checkout/view/frontend/templates/cart/item/default.phtml
index ceac006d2a6af..ade882d144cea 100644
--- a/app/code/Magento/Checkout/view/frontend/templates/cart/item/default.phtml
+++ b/app/code/Magento/Checkout/view/frontend/templates/cart/item/default.phtml
@@ -65,7 +65,6 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
setItem($_item)->toHtml() ?>
-
@@ -77,12 +76,10 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
-
getUnitPriceHtml($_item); ?>
-
@@ -104,7 +101,6 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
data-role="cart-item-qty"/>
-
@@ -113,11 +109,10 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
getRowTotalHtml($_item); ?>
-
-
+
getActions($_item) ?>
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/action/get-payment-information.js b/app/code/Magento/Checkout/view/frontend/web/js/action/get-payment-information.js
index 60592f321a52d..ddb03496eda72 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/action/get-payment-information.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/action/get-payment-information.js
@@ -16,7 +16,7 @@ define(
function ($, quote, urlBuilder, storage, errorProcessor, customer, methodConverter, paymentService) {
'use strict';
- return function (deferred) {
+ return function (deferred, messageContainer) {
var serviceUrl;
deferred = deferred || $.Deferred();
@@ -41,7 +41,7 @@ define(
}
).fail(
function (response) {
- errorProcessor.process(response);
+ errorProcessor.process(response, messageContainer);
deferred.reject();
}
);
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/action/place-order.js b/app/code/Magento/Checkout/view/frontend/web/js/action/place-order.js
index 978c47a4c3333..99b14c50921dc 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/action/place-order.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/action/place-order.js
@@ -14,7 +14,7 @@ define(
function (quote, urlBuilder, storage, url, errorProcessor, customer) {
'use strict';
- return function (paymentData, redirectOnSuccess) {
+ return function (paymentData, redirectOnSuccess, messageContainer) {
var serviceUrl,
payload;
@@ -49,7 +49,7 @@ define(
}
).fail(
function (response) {
- errorProcessor.process(response);
+ errorProcessor.process(response, messageContainer);
}
);
};
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/action/set-payment-information.js b/app/code/Magento/Checkout/view/frontend/web/js/action/set-payment-information.js
index f7e3c7468ea19..a8f578f78b2fe 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/action/set-payment-information.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/action/set-payment-information.js
@@ -13,7 +13,7 @@ define(
function (quote, urlBuilder, storage, errorProcessor, customer) {
'use strict';
- return function () {
+ return function (messageContainer) {
var serviceUrl,
payload,
paymentData = quote.paymentMethod();
@@ -47,7 +47,7 @@ define(
}
).fail(
function (response) {
- errorProcessor.process(response);
+ errorProcessor.process(response, messageContainer);
}
);
};
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/model/authentication-messages.js b/app/code/Magento/Checkout/view/frontend/web/js/model/authentication-messages.js
new file mode 100644
index 0000000000000..2ccc4e1368851
--- /dev/null
+++ b/app/code/Magento/Checkout/view/frontend/web/js/model/authentication-messages.js
@@ -0,0 +1,12 @@
+/**
+ * Copyright © 2015 Magento. All rights reserved.
+ * See COPYING.txt for license details.
+ */
+define([
+ 'ko',
+ 'Magento_Ui/js/model/messages'
+], function (ko, Messages) {
+ 'use strict';
+
+ return new Messages();
+});
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/model/error-processor.js b/app/code/Magento/Checkout/view/frontend/web/js/model/error-processor.js
index 85af889cf2b5a..675f3433646ed 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/model/error-processor.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/model/error-processor.js
@@ -7,16 +7,17 @@ define(
'mage/url',
'Magento_Ui/js/model/messageList'
],
- function (url, messageList) {
+ function (url, globalMessageList) {
'use strict';
return {
- process: function (response) {
+ process: function (response, messageContainer) {
+ messageContainer = messageContainer || globalMessageList;
if (response.status == 401) {
window.location.replace(url.build('customer/account/login/'));
} else {
var error = JSON.parse(response.responseText);
- messageList.addErrorMessage(error);
+ messageContainer.addErrorMessage(error);
}
}
};
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/view/authentication-messages.js b/app/code/Magento/Checkout/view/frontend/web/js/view/authentication-messages.js
new file mode 100644
index 0000000000000..2c2f5fbbf2c90
--- /dev/null
+++ b/app/code/Magento/Checkout/view/frontend/web/js/view/authentication-messages.js
@@ -0,0 +1,16 @@
+/**
+ * Copyright © 2015 Magento. All rights reserved.
+ * See COPYING.txt for license details.
+ */
+define([
+ 'Magento_Ui/js/view/messages',
+ 'Magento_Checkout/js/model/authentication-messages'
+], function (Component, messageContainer) {
+ 'use strict';
+
+ return Component.extend({
+ initialize: function (config) {
+ return this._super(config, messageContainer);
+ }
+ });
+});
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/view/authentication.js b/app/code/Magento/Checkout/view/frontend/web/js/view/authentication.js
index 6cdb98af06735..06a3abe8642e6 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/view/authentication.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/view/authentication.js
@@ -10,9 +10,10 @@ define(
'Magento_Ui/js/form/form',
'Magento_Customer/js/action/login',
'Magento_Customer/js/model/customer',
- 'mage/validation'
+ 'mage/validation',
+ 'Magento_Checkout/js/model/authentication-messages'
],
- function($, Component, loginAction, customer) {
+ function($, Component, loginAction, customer, validation, messageContainer) {
'use strict';
var checkoutConfig = window.checkoutConfig;
@@ -43,7 +44,7 @@ define(
if($(loginForm).validation()
&& $(loginForm).validation('isValid')
) {
- loginAction(loginData, checkoutConfig.checkoutUrl);
+ loginAction(loginData, checkoutConfig.checkoutUrl, undefined, messageContainer);
}
}
});
diff --git a/app/code/Magento/Checkout/view/frontend/web/js/view/payment/default.js b/app/code/Magento/Checkout/view/frontend/web/js/view/payment/default.js
index 1879ad68fcb88..542cbd1100e43 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/view/payment/default.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/view/payment/default.js
@@ -15,7 +15,9 @@ define(
'Magento_Checkout/js/checkout-data',
'Magento_Checkout/js/model/checkout-data-resolver',
'uiRegistry',
- 'Magento_Checkout/js/model/payment/additional-validators'
+ 'Magento_Checkout/js/model/payment/additional-validators',
+ 'Magento_Ui/js/model/messages',
+ 'Magento_Ui/js/core/renderer/layout'
],
function (
ko,
@@ -29,7 +31,9 @@ define(
checkoutData,
checkoutDataResolver,
registry,
- additionalValidators
+ additionalValidators,
+ Messages,
+ layout
) {
'use strict';
return Component.extend({
@@ -81,6 +85,31 @@ define(
* @returns {Component} Chainable.
*/
initChildren: function () {
+ this.messageContainer = new Messages();
+ this.createMessagesComponent();
+
+ return this;
+ },
+
+ /**
+ * Create child message renderer component
+ *
+ * @returns {Component} Chainable.
+ */
+ createMessagesComponent: function () {
+
+ var messagesComponent = {
+ parent: this.name,
+ name: this.name + '.messages',
+ displayArea: 'messages',
+ component: 'Magento_Ui/js/view/messages',
+ config: {
+ messageContainer: this.messageContainer
+ }
+ };
+
+ layout([messagesComponent]);
+
return this;
},
@@ -101,7 +130,7 @@ define(
}
if (emailValidationResult && this.validate() && additionalValidators.validate()) {
this.isPlaceOrderActionAllowed(false);
- placeOrder = placeOrderAction(this.getData(), this.redirectAfterPlaceOrder);
+ placeOrder = placeOrderAction(this.getData(), this.redirectAfterPlaceOrder, this.messageContainer);
$.when(placeOrder).fail(function () {
self.isPlaceOrderActionAllowed(true);
diff --git a/app/code/Magento/Checkout/view/frontend/web/template/authentication.html b/app/code/Magento/Checkout/view/frontend/web/template/authentication.html
index 41989fcbf0e60..3ef490b0e4b12 100644
--- a/app/code/Magento/Checkout/view/frontend/web/template/authentication.html
+++ b/app/code/Magento/Checkout/view/frontend/web/template/authentication.html
@@ -36,6 +36,9 @@
aria-level="2"
data-bind="i18n: 'Sign In'">
+
+
+
\ No newline at end of file
+
diff --git a/app/code/Magento/GiftMessage/view/frontend/web/template/gift-message-item-level.html b/app/code/Magento/GiftMessage/view/frontend/web/template/gift-message-item-level.html
index 9811d2d595b9a..818e355063a25 100644
--- a/app/code/Magento/GiftMessage/view/frontend/web/template/gift-message-item-level.html
+++ b/app/code/Magento/GiftMessage/view/frontend/web/template/gift-message-item-level.html
@@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
+
+
+
diff --git a/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/cashondelivery.html b/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/cashondelivery.html
index d7f047edeb7b9..68ef26d7759ba 100644
--- a/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/cashondelivery.html
+++ b/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/cashondelivery.html
@@ -14,6 +14,9 @@
+
+
+
diff --git a/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/checkmo.html b/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/checkmo.html
index 8aaa29f59075a..e20e15111e5b6 100644
--- a/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/checkmo.html
+++ b/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/checkmo.html
@@ -13,6 +13,9 @@
+
+
+
diff --git a/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/purchaseorder-form.html b/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/purchaseorder-form.html
index 4504a235f58bb..bb820b7730411 100644
--- a/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/purchaseorder-form.html
+++ b/app/code/Magento/OfflinePayments/view/frontend/web/template/payment/purchaseorder-form.html
@@ -16,6 +16,9 @@
+
+
+
diff --git a/app/code/Magento/Payment/view/frontend/web/template/payment/free.html b/app/code/Magento/Payment/view/frontend/web/template/payment/free.html
index 1f7b3b7a51c6c..2104027f0c41e 100644
--- a/app/code/Magento/Payment/view/frontend/web/template/payment/free.html
+++ b/app/code/Magento/Payment/view/frontend/web/template/payment/free.html
@@ -13,6 +13,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/js/action/set-payment-method.js b/app/code/Magento/Paypal/view/frontend/web/js/action/set-payment-method.js
index b7118b886ea76..819f8cea3e4e1 100644
--- a/app/code/Magento/Paypal/view/frontend/web/js/action/set-payment-method.js
+++ b/app/code/Magento/Paypal/view/frontend/web/js/action/set-payment-method.js
@@ -14,7 +14,7 @@ define(
function ($, quote, urlBuilder, storage, errorProcessor, customer) {
'use strict';
- return function () {
+ return function (messageContainer) {
var serviceUrl,
payload,
paymentData = quote.paymentMethod();
@@ -45,7 +45,7 @@ define(
}
).fail(
function (response) {
- errorProcessor.process(response);
+ errorProcessor.process(response, messageContainer);
}
);
};
diff --git a/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/payflowpro-method.js b/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/payflowpro-method.js
index 96dffc1451641..eda3532e9af36 100644
--- a/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/payflowpro-method.js
+++ b/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/payflowpro-method.js
@@ -48,7 +48,7 @@ define(
var self = this;
if (this.validateHandler() && additionalValidators.validate()) {
this.isPlaceOrderActionAllowed(false);
- $.when(setPaymentInformationAction()).done(function() {
+ $.when(setPaymentInformationAction(this.messageContainer)).done(function() {
self.placeOrderHandler();
}).fail(function() {
self.isPlaceOrderActionAllowed(true);
diff --git a/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/paypal-express-abstract.js b/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/paypal-express-abstract.js
index f3e75d46f2f3b..42dc214ea9126 100644
--- a/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/paypal-express-abstract.js
+++ b/app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/paypal-express-abstract.js
@@ -73,7 +73,7 @@ define(
if (additionalValidators.validate()) {
//update payment method information if additional data was changed
this.selectPaymentMethod();
- setPaymentMethodAction();
+ setPaymentMethodAction(this.messageContainer);
return false;
}
}
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/iframe-methods.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/iframe-methods.html
index 0f3a8f23c7ddc..2653590cee4f8 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/iframe-methods.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/iframe-methods.html
@@ -13,6 +13,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express-bml.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express-bml.html
index 986757ac537e1..ff4a86c5e7642 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express-bml.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express-bml.html
@@ -25,6 +25,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express.html
index e6b0b5f97cd64..6b3ad287008c2 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/payflow-express.html
@@ -22,6 +22,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/payflowpro-form.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/payflowpro-form.html
index 8c986e7c1acc1..727a8ea1e0609 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/payflowpro-form.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/payflowpro-form.html
@@ -16,6 +16,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express-bml.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express-bml.html
index 986757ac537e1..ff4a86c5e7642 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express-bml.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express-bml.html
@@ -25,6 +25,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express.html
index fc94573818ff2..6359245071c5f 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal-express.html
@@ -22,6 +22,9 @@
+
+
+
diff --git a/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal_billing_agreement-form.html b/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal_billing_agreement-form.html
index 774c5d7ae9a1c..a37dd264ec81c 100644
--- a/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal_billing_agreement-form.html
+++ b/app/code/Magento/Paypal/view/frontend/web/template/payment/paypal_billing_agreement-form.html
@@ -13,6 +13,9 @@