33 $this->_areaListMock = $this->createMock(\
Magento\Framework\
App\AreaList::class);
34 $this->_requestMock = $this->createMock(\
Magento\Framework\
App\Request\Http::class);
35 $this->appState = $this->createMock(\
Magento\Framework\
App\State::class);
36 $this->_model = new \Magento\Framework\View\DesignLoader(
45 $area = $this->createMock(\
Magento\Framework\
App\Area::class);
46 $this->appState->expects($this->once())->method(
'getAreaCode')->will($this->returnValue(
'area'));
47 $this->_areaListMock->expects($this->once())->method(
'getArea')->with(
'area')->will($this->returnValue($area));
48 $area->expects($this->at(0))->method(
'load')
49 ->with(\
Magento\Framework\
App\Area::PART_DESIGN)->will($this->returnValue($area));
50 $area->expects($this->at(1))->method(
'load')
51 ->with(\
Magento\Framework\
App\Area::PART_TRANSLATE)->will($this->returnValue($area));
52 $this->_model->load($this->_requestMock);