Fix: Check env before test to be sure module ecotax is not enabled

(this change result).
This commit is contained in:
Laurent Destailleur 2014-05-08 15:30:31 +02:00
parent 4bf86508a5
commit 70cccc907a

View File

@ -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";
}