Skip to content

Commit 366b3ad

Browse files
author
Eric Bohanon
committed
MAGETWO-71257: Need to disable module output by configuration
1 parent 348d513 commit 366b3ad

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

app/code/Magento/Payment/Test/Unit/Block/Info/SubstitutionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testBeforeToHtml()
7979
->willReturn($abstractBlock);
8080

8181
$infoMock = $this->getMockBuilder(\Magento\Payment\Model\Info::class)
82-
->disableOriginalConstructor()
82+
->disableOriginalConstructor()->setMethods([])
8383
->getMock();
8484
$methodMock = $this->getMockBuilder(\Magento\Payment\Model\MethodInterface::class)
8585
->getMockForAbstractClass();

app/code/Magento/Persistent/Test/Unit/Block/Header/AdditionalTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ protected function setUp()
134134
'',
135135
false,
136136
true,
137-
true
137+
true,
138+
['getValue']
138139
);
139140
$this->cacheStateMock = $this->getMockForAbstractClass(
140141
\Magento\Framework\App\Cache\StateInterface::class,

app/code/Magento/Wishlist/Test/Unit/Model/Rss/WishlistTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,19 @@ public function testGetRssData()
152152
$this->urlBuilderMock->expects($this->once())
153153
->method('getUrl')
154154
->will($this->returnValue($wishlistSharingUrl));
155+
$this->scopeConfig->expects($this->any())
156+
->method('getValue')
157+
->will($this->returnValueMap(
158+
[
159+
[
160+
Data::XML_PATH_DEFAULT_LOCALE,
161+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
162+
null,
163+
$locale
164+
],
165+
]
166+
)
167+
);
155168

156169
$staticArgs = [
157170
'productName' => $productName,

lib/internal/Magento/Framework/Module/Manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Framework\Module;
78

89
/**

0 commit comments

Comments
 (0)