Change Failure messages and fixup bad assertion

This commit is contained in:
Benoît Burnichon
2015-11-03 11:08:58 +01:00
parent 38eab1f97e
commit e562a83d33

View File

@@ -24,7 +24,7 @@ class module_console_systemTemplateGeneratorTest extends \PhraseanetTestCase
$data = explode("\n", trim($commandTester->getDisplay())); $data = explode("\n", trim($commandTester->getDisplay()));
$last_line = array_pop($data); $last_line = array_pop($data);
$this->assertTrue(strpos($last_line, 'templates failed') === false, 'Some templates failed'); $this->assertTrue(strpos($last_line, 'templates failed') === false, sprintf('Some templates failed: %s', $commandTester->getDisplay()));
$this->assertTrue(strpos($last_line, 'templates generated') !== true, 'Some templates have been generated'); $this->assertTrue(strpos($last_line, 'templates generated') !== false, 'No templates have been generated');
} }
} }