addData() public method

See also: Bolt\Twig\Handler\AdminHandler::addData()
public addData ( $path, $value )
示例#1
0
 public function testAddData()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['admin'] = $this->getMockHandler('AdminHandler', 'addData');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->addData(null, null);
 }