public function testAddDefaultHandle() { $processor = $this->getMock('Magento\\Framework\\View\\Layout\\ProcessorInterface', [], [], '', false); $processor->expects($this->once())->method('addHandle')->with('module_controller_action'); $this->layout->expects($this->once())->method('getUpdate')->will($this->returnValue($processor)); $this->request->expects($this->once())->method('getFullActionName')->will($this->returnValue('Module_Controller_Action')); $this->assertSame($this->resultLayout, $this->resultLayout->addDefaultHandle()); }
/** * {@inheritdoc} */ public function addDefaultHandle() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addDefaultHandle'); if (!$pluginInfo) { return parent::addDefaultHandle(); } else { return $this->___callPlugins('addDefaultHandle', func_get_args(), $pluginInfo); } }
/** * Add default handle * * @return $this */ public function addDefaultHandle() { $this->addHandle('default'); return parent::addDefaultHandle(); }