public function testSlug() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['text'] = $this->getMockHandler('TextHandler', 'slug'); $twig = new TwigExtension($app, $handlers, true); $twig->slug(null); }
public function testMarkdown() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $twig = new TwigExtension($app, $handlers, false); $this->assertEquals('a-title-made-of-words', $twig->slug("A Title Made of Words")); }