public function getView() { if ($this->getData('view') == null) { $view = View\Model::fromId($this->getViewId()); if ($view !== null) { $this->setData('view', $view); } } return $this->getData('view'); }
/** * Test * * @return void */ public function testGetView() { $this->assertInstanceOf('Gc\\View\\Model', $this->object->getView()); }