8 use \Magento\Theme\Model\Theme\Customization\File\CustomCss;
37 $this->customizationPath = $this->getMockBuilder(\
Magento\Framework\View\
Design\
Theme\Customization\Path::class)
38 ->disableOriginalConstructor()
40 $this->fileFactory = $this->getMockBuilder(\
Magento\Framework\View\
Design\
Theme\FileFactory::class)
41 ->setMethods([
'create'])
42 ->disableOriginalConstructor()
44 $this->filesystem = $this->getMockBuilder(\
Magento\Framework\Filesystem::class)
45 ->disableOriginalConstructor()
49 $this->customizationPath,
59 public function testPrepareFile()
61 $file = $this->getMockBuilder(\
Magento\Framework\View\
Design\
Theme\FileInterface::class)
73 'getCustomizationService',
74 'setCustomizationService',
80 $file->expects($this->any())
89 $file->expects($this->once())
92 $file->expects($this->at(0))
93 ->method(
'getFileName')
95 $file->expects($this->at(1))
96 ->method(
'getFileName')
98 $file->expects($this->once())
99 ->method(
'setFileName')
103 $this->assertInstanceOf(
105 $this->object->prepareFile($file)