public function getLayout() { if ($this->getData('layout') == null) { $view = Layout\Model::fromId($this->getLayoutId()); if ($view !== null) { $this->setData('layout', $view); } } return $this->getData('layout'); }
/** * Test * * @return void */ public function testGetLayout() { $this->assertInstanceOf('Gc\\Layout\\Model', $this->object->getLayout()); }