/**
  * Get path to custom view configuration file
  *
  * @return null|string
  */
 public function getCustomViewConfigPath()
 {
     return $this->customizationPath->getCustomViewConfigPath($this->theme);
 }
示例#2
0
 /**
  * @covers \Magento\Framework\View\Design\Theme\Customization\Path::getCustomViewConfigPath
  */
 public function testGetCustomViewConfigPath()
 {
     $expectedPath = implode('/', [\Magento\Framework\View\Design\Theme\Customization\Path::DIR_NAME, '123', \Magento\Framework\View\ConfigInterface::CONFIG_FILE_NAME]);
     $this->assertEquals($expectedPath, $this->_model->getCustomViewConfigPath($this->_theme->setId(123)));
     $this->assertNull($this->_model->getCustomViewConfigPath($this->_theme->setId(null)));
 }
示例#3
0
 /**
  * @covers \Magento\Framework\View\Design\Theme\Customization\Path::getCustomViewConfigPath
  */
 public function testGetCustomViewConfigPathNoId()
 {
     $this->_theme->expects($this->once())->method('getId')->will($this->returnValue(null));
     $this->assertNull($this->_model->getCustomViewConfigPath($this->_theme));
 }