public function testGetPreference() { $this->assertNull($this->object->getPreference('nopref')); $this->object->setPreference('lang', 'fr'); $this->assertEquals('fr', $this->object->getPreference('lang')); }
public function getUser() { if (isset($this->attributes['userClosure'])) { return \call_user_func($this->attributes['userClosure']); } return \Nethgui\Authorization\User::getAnonymousUser(); }