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