getUserId() public method

See also: Bolt\Twig\Handler\UserHandler::getUserId()
public getUserId ( $who )
Example #1
0
 public function testGetUserId()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['user'] = $this->getMockHandler('UserHandler', 'getUserId');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->getUserId(null);
 }