2
0
forked from Wavyzz/dolibarr

Fix: Check conditions to run test

This commit is contained in:
Laurent Destailleur
2012-07-29 19:40:20 +02:00
parent d85bd3d41c
commit b40c0a5d86

View File

@@ -112,6 +112,8 @@ class BuildDocTest extends PHPUnit_Framework_TestCase
if (! $conf->propal->enabled) { print __METHOD__." propal module not enabled\n"; die(); }
if (! $conf->projet->enabled) { print __METHOD__." project module not enabled\n"; die(); }
if (! $conf->expedition->enabled) { print __METHOD__." shipment module not enabled\n"; die(); }
if (! $conf->ficheinter->enabled) { print __METHOD__." intervention module not enabled\n"; die(); }
if (! $conf->deplacement->enabled) { print __METHOD__." trip module not enabled\n"; die(); }
$db->begin(); // This is to have all actions inside a transaction even if test launched without suite.