/** * Emulate environment of an area * * @param string $mode * @param string $areaCode * @return void */ protected function _emulateArea($mode, $areaCode) { switch ($mode) { case self::MODE_NAVIGATION: default: $this->_areaEmulator->emulateLayoutArea($areaCode); break; } }
public function testEmulateLayoutArea() { $configuration = ['Magento\\Framework\\View\\Layout' => ['arguments' => ['area' => 'test_area']]]; $this->_objectManager->expects($this->once())->method('configure')->with($configuration); $this->_model->emulateLayoutArea('test_area'); }