token() public method

See also: Bolt\Twig\Handler\UserHandler::token()
public token ( )
Example #1
0
 public function testToken()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['user'] = $this->getMockHandler('UserHandler', 'token');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->token();
 }
Example #2
0
 public function testToken()
 {
     $app = $this->getApp();
     $app['request'] = Request::create('/');
     $handlers = $this->getTwigHandlers($app);
     $twig = new TwigExtension($app, $handlers, false);
     $this->assertNotEmpty($twig->token());
 }