Add a test to be sure module is on

This commit is contained in:
Laurent Destailleur
2012-01-31 00:51:52 +01:00
parent 1e8fd73810
commit ed4a0742c8
2 changed files with 9 additions and 23 deletions

View File

@@ -77,6 +77,8 @@ class ProductTest extends PHPUnit_Framework_TestCase
{
global $conf,$user,$langs,$db;
if (empty($conf->produit->enabled)) { print __METHOD__." Module Product must be enabled.\n"; die(); }
$db->begin(); // This is to have all actions inside a transaction even if test launched without suite.
print __METHOD__."\n";