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