mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Fix load module by test
This commit is contained in:
@@ -56,6 +56,9 @@ require_once dirname(__FILE__).'/../../htdocs/core/modules/project/modules_proje
|
||||
require_once dirname(__FILE__).'/../../htdocs/core/modules/fichinter/modules_fichinter.php';
|
||||
require_once dirname(__FILE__).'/../../htdocs/core/modules/expedition/modules_expedition.php';
|
||||
|
||||
require_once dirname(__FILE__).'/../../htdocs/core/modules/modExpenseReport.class.php';
|
||||
|
||||
|
||||
if (empty($user->id)) {
|
||||
print "Load permissions for admin user nb 1\n";
|
||||
$user->fetch(1);
|
||||
@@ -103,6 +106,9 @@ class BuildDocTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
global $conf,$user,$langs,$db;
|
||||
|
||||
$moduledescriptor=new modExpenseReport($db);
|
||||
$moduledescriptor->init();
|
||||
|
||||
if (! $conf->facture->enabled) { print __METHOD__." invoice module not enabled\n"; die(); }
|
||||
if (! $conf->commande->enabled) { print __METHOD__." order module not enabled\n"; die(); }
|
||||
if (! $conf->propal->enabled) { print __METHOD__." propal module not enabled\n"; die(); }
|
||||
|
||||
Reference in New Issue
Block a user