/** * Get path to custom view configuration file * * @return null|string */ public function getCustomViewConfigPath() { return $this->customizationPath->getCustomViewConfigPath($this->theme); }
/** * @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))); }
/** * @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)); }