/** * @covers \Magento\Framework\View\Design\Theme\Customization\Path::getThemeFilesPath */ public function testGetThemeFilesPath() { $this->_appState->expects($this->any())->method('getAreaCode')->will($this->returnValue('area51')); $expectedPath = implode('/', ['area51', 'path']); $this->assertEquals($expectedPath, $this->_model->getThemeFilesPath($this->_theme->setThemePath('path'))); $this->assertNull($this->_model->getCustomizationPath($this->_theme->setThemePath(null))); }
/** * @test * @return void */ public function getFullThemePath() { $areaCode = 'frontend'; $this->appState->expects($this->once())->method('getAreaCode')->willReturn($areaCode); $path = 'some/path'; $this->_model->setThemePath($path); $this->assertEquals($areaCode . Theme::PATH_SEPARATOR . $path, $this->_model->getFullPath()); }