29 $this->repositoryMock = $this->createMock(\
Magento\Framework\View\
Asset\Repository::class);
30 $this->viewConfigFactoryMock = $this->createMock(\
Magento\Framework\
Config\ViewFactory::class);
31 $this->objectManagerHelper =
new ObjectManagerHelper($this);
32 $this->config = $this->objectManagerHelper->getObject(
33 \
Magento\Framework\View\Config::class,
35 'assetRepo' => $this->repositoryMock,
36 'viewConfigFactory' => $this->viewConfigFactoryMock
43 $themeCode =
'area/theme';
45 $themeMock = $this->createPartialMock(\
Magento\Theme\Model\Theme::class, [
'getFullPath']);
46 $themeMock->expects($this->atLeastOnce())
47 ->method(
'getFullPath')
48 ->will($this->returnValue($themeCode));
50 'themeModel' => $themeMock,
53 $this->repositoryMock->expects($this->atLeastOnce())
54 ->method(
'updateDesignParams')
56 ->will($this->returnSelf());
57 $configViewMock = $this->createMock(\
Magento\Framework\
Config\View::class);
58 $this->viewConfigFactoryMock->expects($this->once())
60 ->willReturn($configViewMock);
getViewConfig(array $params=[])
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]