public function getUser()
{
if ($this->getData('user') === null and $this->getUserId() != null) {
$this->setData('user', User\Model::fromId($this->getUserId()));
}
return $this->getData('user');
}
/** * Test * * @return void */ public function testGetUser() { $this->assertInstanceOf('Gc\\User\\Model', $this->object->getUser()); }