Skip to content

Commit f1a1ba6

Browse files
committed
ENGCOM-3260: Unit and static tests fix.
1 parent c88cf51 commit f1a1ba6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
26

37
namespace Magento\Framework\Module;
48

lib/internal/Magento/Framework/Module/Test/Unit/ManagerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function testIsEnabled()
6262

6363
public function testIsOutputEnabledReturnsFalseForDisabledModule()
6464
{
65+
$this->_moduleList->expects($this->once())->method('has')->with('Disabled_Module')->willReturn(false);
6566
$this->_outputConfig->expects($this->any())->method('isSetFlag')->will($this->returnValue(true));
6667
$this->assertFalse($this->_model->isOutputEnabled('Disabled_Module'));
6768
}

0 commit comments

Comments
 (0)