mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Fix build
This commit is contained in:
@@ -80,6 +80,7 @@ class module_console_systemTemplateGenerator extends Command
|
||||
$twig->addFilter('key_exists', new Twig_Filter_Function('array_key_exists'));
|
||||
$twig->addFilter('array_keys', new Twig_Filter_Function('array_keys'));
|
||||
$twig->addFilter('round', new Twig_Filter_Function('round'));
|
||||
$twig->addFilter('get_class', new Twig_Filter_Function('get_class'));
|
||||
$twig->addFilter('formatdate', new Twig_Filter_Function('phraseadate::getDate'));
|
||||
$twig->addFilter('getPrettyDate', new Twig_Filter_Function('phraseadate::getPrettyString'));
|
||||
$twig->addFilter('prettyDate', new Twig_Filter_Function('phraseadate::getPrettyString'));
|
||||
|
@@ -20,7 +20,6 @@ class module_console_systemTemplateGeneratorTest extends PHPUnit_Framework_TestC
|
||||
$commandTester = new CommandTester($command);
|
||||
$commandTester->execute(array('command' => $command->getName()));
|
||||
|
||||
$lines = explode("\n", trim($commandTester->getDisplay()));
|
||||
$last_line = array_pop(explode("\n", trim($commandTester->getDisplay())));
|
||||
|
||||
$this->assertTrue(strpos($last_line, 'templates failed') === false, 'Some templates failed');
|
||||
|
Reference in New Issue
Block a user