Ejemplo n.º 1
0
 protected function setUp()
 {
     $this->_themeFactory = $this->getMock('Magento\\Core\\Model\\ThemeFactory', array('create'), array(), '', false);
     $this->_theme = $this->getMock('Magento\\Core\\Model\\Theme', array('load', 'getId', 'getType', 'getDomainModel', 'isVirtual', '__wakeup'), array(), '', false);
     $this->_themeFactory->expects($this->any())->method('create')->will($this->returnValue($this->_theme));
     $this->_copyService = $this->getMock('Magento\\Theme\\Model\\CopyService', array('copy'), array(), '', false);
     $this->_model = new \Magento\DesignEditor\Model\Theme\Context($this->_themeFactory, $this->_copyService);
 }