Skip to content

Commit 332ff62

Browse files
committed
Merge branch 'ddonnini-checkout-cart-link' of github.com:ddonnini/magento2 into github_pr
2 parents 8040804 + 6d6cb82 commit 332ff62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Checkout/Block/Cart/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getHref()
6565
*/
6666
protected function _toHtml()
6767
{
68-
if ($this->_moduleManager->isOutputEnabled('Magento_Checkout')) {
68+
if (!$this->_moduleManager->isOutputEnabled('Magento_Checkout')) {
6969
return '';
7070
}
7171
return parent::_toHtml();

app/code/Magento/Checkout/Test/Unit/Block/Cart/LinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testToHtml()
5757
)->with(
5858
'Magento_Checkout'
5959
)->will(
60-
$this->returnValue(true)
60+
$this->returnValue(false)
6161
);
6262
$this->assertSame('', $block->toHtml());
6363
}

0 commit comments

Comments
 (0)