From 70cccc907a70be1f74142a374d704100a0cd7a5b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 8 May 2014 15:30:31 +0200 Subject: [PATCH] Fix: Check env before test to be sure module ecotax is not enabled (this change result). --- test/phpunit/FactureTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/phpunit/FactureTest.php b/test/phpunit/FactureTest.php index 1215dfba191..36e499bb613 100644 --- a/test/phpunit/FactureTest.php +++ b/test/phpunit/FactureTest.php @@ -76,7 +76,10 @@ class FactureTest extends PHPUnit_Framework_TestCase public static function setUpBeforeClass() { global $conf,$user,$langs,$db; - $db->begin(); // This is to have all actions inside a transaction even if test launched without suite. + + if (! empty($conf->ecotaxdeee->enabled)) { print __METHOD__." ecotaxdeee module must not be enabled.\n"; die(); } + + $db->begin(); // This is to have all actions inside a transaction even if test launched without suite. print __METHOD__."\n"; }