]> git.agnieray.net Git - galette.git/commitdiff
Display errors during tests
authorJohan Cwiklinski <johan@x-tnd.be>
Tue, 2 Nov 2021 11:28:08 +0000 (12:28 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Sat, 6 Nov 2021 10:06:15 +0000 (11:06 +0100)
See https://github.com/atoum/atoum/issues/879

galette/includes/galette.inc.php

index 3f28b98200234f3d9fb385a67fc06f740c436adb..40abf8c7809779f4264796fb8db24e40d6ae27a6 100644 (file)
@@ -122,13 +122,13 @@ if (!isset($_COOKIE['show_galette_dashboard'])) {
 }
 
 if (!defined('GALETTE_DISPLAY_ERRORS')) {
-    if (GALETTE_MODE === 'DEV') {
+    if (GALETTE_MODE === \Galette\Core\Galette::MODE_DEV) {
         define('GALETTE_DISPLAY_ERRORS', 1);
     } else {
         define('GALETTE_DISPLAY_ERRORS', 0);
     }
 }
-ini_set('display_errors', 0);
+ini_set('display_errors', (defined('GALETTE_TESTS') ? '1' : '0'));
 
 /*------------------------------------------------------------------------------
 Logger stuff