public function testLoadFileSystemWithPageLayout() { $handles = ['fixture_handle_with_page_layout']; $expectedHandles = ['fixture_handle_with_page_layout']; $expectedResult = ' <root> <body> <referenceContainer name="main.container"> <block class="Magento\\Framework\\View\\Element\\Template" template="fixture_template_one.phtml"/> </referenceContainer> </body> </root> '; $this->assertEmpty($this->_model->getHandles()); $this->assertEmpty($this->_model->asString()); $this->_model->load($handles); $this->assertEquals($expectedHandles, $this->_model->getHandles()); $actualResult = '<root>' . $this->_model->asString() . '</root>'; $this->assertXmlStringEqualsXmlString($expectedResult, $actualResult); $this->assertEquals('fixture_handle_page_layout', $this->_model->getPageLayout()); }
/** * {@inheritdoc} */ public function getPageLayout() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getPageLayout'); if (!$pluginInfo) { return parent::getPageLayout(); } else { return $this->___callPlugins('getPageLayout', func_get_args(), $pluginInfo); } }