From a551025a2a9fa2388301167723d120938b020482 Mon Sep 17 00:00:00 2001 From: ddonnini Date: Tue, 22 Mar 2016 12:15:03 +0100 Subject: [PATCH 1/2] Fixes _toHtml method of Checkout/Block/Cart/Link class --- app/code/Magento/Checkout/Block/Cart/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Checkout/Block/Cart/Link.php b/app/code/Magento/Checkout/Block/Cart/Link.php index 1319ac9888db4..5b4a9aabd6b21 100644 --- a/app/code/Magento/Checkout/Block/Cart/Link.php +++ b/app/code/Magento/Checkout/Block/Cart/Link.php @@ -65,7 +65,7 @@ public function getHref() */ protected function _toHtml() { - if ($this->_moduleManager->isOutputEnabled('Magento_Checkout')) { + if (!$this->_moduleManager->isOutputEnabled('Magento_Checkout')) { return ''; } return parent::_toHtml(); From 6d6cb82c4ee01924d3f969082968ed9ac831ced7 Mon Sep 17 00:00:00 2001 From: ddonnini Date: Tue, 22 Mar 2016 12:16:22 +0100 Subject: [PATCH 2/2] Update LinkTest --- app/code/Magento/Checkout/Test/Unit/Block/Cart/LinkTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Checkout/Test/Unit/Block/Cart/LinkTest.php b/app/code/Magento/Checkout/Test/Unit/Block/Cart/LinkTest.php index 453fac8dd5fa6..528a4e3e49ae7 100644 --- a/app/code/Magento/Checkout/Test/Unit/Block/Cart/LinkTest.php +++ b/app/code/Magento/Checkout/Test/Unit/Block/Cart/LinkTest.php @@ -57,7 +57,7 @@ public function testToHtml() )->with( 'Magento_Checkout' )->will( - $this->returnValue(true) + $this->returnValue(false) ); $this->assertSame('', $block->toHtml()); }