24 private $_moduleManager;
28 $this->_fileSource = $this->getMockForAbstractClass(\
Magento\Framework\View\
File\CollectorInterface::class);
29 $this->_moduleManager = $this->createMock(\
Magento\Framework\Module\Manager::class);
31 ->expects($this->any())
32 ->method(
'isOutputEnabled')
33 ->will($this->returnValueMap([
34 [
'Module_OutputEnabled',
true],
35 [
'Module_OutputDisabled',
false],
37 $this->_model = new \Magento\Framework\View\File\Collector\Decorator\ModuleOutput(
45 $theme = $this->getMockForAbstractClass(\
Magento\Framework\View\Design\ThemeInterface::class);
46 $fileOne = new \Magento\Framework\View\File(
'1.xml',
'Module_OutputEnabled');
47 $fileTwo = new \Magento\Framework\View\File(
'2.xml',
'Module_OutputDisabled');
48 $fileThree = new \Magento\Framework\View\File(
'3.xml',
'Module_OutputEnabled',
$theme);
50 ->expects($this->once())
53 ->will($this->returnValue([$fileOne, $fileTwo, $fileThree]));
54 $this->assertSame([$fileOne, $fileThree], $this->_model->getFiles(
$theme,
'*.xml'));