From e562a83d331beae9f4bf64f417a8d68f2c806c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Burnichon?= Date: Tue, 3 Nov 2015 11:08:58 +0100 Subject: [PATCH] Change Failure messages and fixup bad assertion --- tests/classes/module/console/systemTemplateGeneratorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/classes/module/console/systemTemplateGeneratorTest.php b/tests/classes/module/console/systemTemplateGeneratorTest.php index 25f0c3bb67..6e510cbde8 100644 --- a/tests/classes/module/console/systemTemplateGeneratorTest.php +++ b/tests/classes/module/console/systemTemplateGeneratorTest.php @@ -24,7 +24,7 @@ class module_console_systemTemplateGeneratorTest extends \PhraseanetTestCase $data = explode("\n", trim($commandTester->getDisplay())); $last_line = array_pop($data); - $this->assertTrue(strpos($last_line, 'templates failed') === false, 'Some templates failed'); - $this->assertTrue(strpos($last_line, 'templates generated') !== true, 'Some templates have been generated'); + $this->assertTrue(strpos($last_line, 'templates failed') === false, sprintf('Some templates failed: %s', $commandTester->getDisplay())); + $this->assertTrue(strpos($last_line, 'templates generated') !== false, 'No templates have been generated'); } }