From 2a456b08d576eeb15bc3d24394a4faff3ceac132 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 23 Sep 2011 12:21:00 +0000 Subject: [PATCH] Enhance PHPUnit tests --- htdocs/includes/login/functions_dolibarr.php | 12 +++-- htdocs/includes/login/functions_empty.php | 11 ++-- htdocs/includes/login/functions_forceuser.php | 19 ++++--- htdocs/includes/login/functions_http.php | 13 +++-- htdocs/includes/login/functions_ldap.php | 12 +++-- htdocs/includes/login/functions_myopenid.php | 11 ++-- test/phpunit/AdherentTest.php | 8 +-- test/phpunit/BuildDocTest.php | 35 +------------ test/phpunit/CMailFileTest.php | 8 +-- test/phpunit/CategorieTest.php | 8 +-- test/phpunit/ChargeSocialesTest.php | 8 +-- test/phpunit/CommandeFournisseurTest.php | 4 +- test/phpunit/CommandeTest.php | 4 +- test/phpunit/CommonObjectTest.php | 7 +-- test/phpunit/CompanyBankAccountTest.php | 3 +- test/phpunit/ContratTest.php | 9 +--- test/phpunit/DateLibTest.php | 2 +- test/phpunit/DiscountTest.php | 2 + test/phpunit/ExportTest.php | 6 +-- test/phpunit/FactureFournisseurTest.php | 9 +--- test/phpunit/FactureTest.php | 18 +------ test/phpunit/FunctionsTest.php | 1 + test/phpunit/ImportTest.php | 2 +- test/phpunit/ModulesTest.php | 50 +------------------ test/phpunit/PropalTest.php | 4 +- test/phpunit/SecurityTest.php | 35 ++++++++++--- test/phpunit/SocieteTest.php | 5 +- test/phpunit/UserGroupTest.php | 8 +-- test/phpunit/UserTest.php | 8 +-- test/phpunit/WebservicesTest.php | 2 +- 30 files changed, 101 insertions(+), 223 deletions(-) diff --git a/htdocs/includes/login/functions_dolibarr.php b/htdocs/includes/login/functions_dolibarr.php index 28c93cc7319..e3b2325409a 100644 --- a/htdocs/includes/login/functions_dolibarr.php +++ b/htdocs/includes/login/functions_dolibarr.php @@ -24,11 +24,13 @@ /** - * Check user and password - * @param usertotest Login - * @param passwordtotest Password - * @param entitytotest Entity - * @return string Login if ok, '' if ko. + * Check validity of user/password/entity + * If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * + * @param string $usertotest Login + * @param string $passwordtotest Password + * @param int $entitytotest Number of instance (always 1 if module multicompany not enabled) + * @return string Login if OK, '' if KO */ function check_user_password_dolibarr($usertotest,$passwordtotest,$entitytotest=1) { diff --git a/htdocs/includes/login/functions_empty.php b/htdocs/includes/login/functions_empty.php index 6c553511043..2417aea9c20 100644 --- a/htdocs/includes/login/functions_empty.php +++ b/htdocs/includes/login/functions_empty.php @@ -23,10 +23,13 @@ /** - * \brief Check user and password - * \param usertotest Login - * \param passwordtotest Password - * \return string Login if ok, '' if ko. + * Check validity of user/password/entity + * If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * + * @param string $usertotest Login + * @param string $passwordtotest Password + * @param int $entitytotest Number of instance (always 1 if module multicompany not enabled) + * @return string Login if OK, '' if KO */ function check_user_password_empty($usertotest,$passwordtotest) { diff --git a/htdocs/includes/login/functions_forceuser.php b/htdocs/includes/login/functions_forceuser.php index 1a9aaa1a793..49f7491f52f 100644 --- a/htdocs/includes/login/functions_forceuser.php +++ b/htdocs/includes/login/functions_forceuser.php @@ -24,23 +24,26 @@ /** - \brief Check user and password - \param usertotest Login - \param passwordtotest Password - \return string Login if ok, '' if ko. -*/ + * Check validity of user/password/entity + * If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * + * @param string $usertotest Login + * @param string $passwordtotest Password + * @param int $entitytotest Number of instance (always 1 if module multicompany not enabled) + * @return string Login if OK, '' if KO + */ function check_user_password_forceuser($usertotest,$passwordtotest) { // Variable dolibarr_auto_user must be defined in conf.php file global $dolibarr_auto_user; - + dol_syslog("functions_forceuser::check_user_password_forceuser"); $login=$dolibarr_auto_user; if (empty($login)) $login='auto'; - + if ($_SESSION["dol_loginmesg"]) $login=''; - + return $login; } diff --git a/htdocs/includes/login/functions_http.php b/htdocs/includes/login/functions_http.php index dd8e554c3ab..2c504a01860 100644 --- a/htdocs/includes/login/functions_http.php +++ b/htdocs/includes/login/functions_http.php @@ -23,10 +23,13 @@ /** - \brief Check user and password - \param usertotest Login - \param passwordtotest Password - \return string Login if ok, '' if ko. + * Check validity of user/password/entity + * If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * + * @param string $usertotest Login + * @param string $passwordtotest Password + * @param int $entitytotest Number of instance (always 1 if module multicompany not enabled) + * @return string Login if OK, '' if KO */ function check_user_password_http($usertotest,$passwordtotest) { @@ -37,7 +40,7 @@ function check_user_password_http($usertotest,$passwordtotest) { $login=$_SERVER["REMOTE_USER"]; } - + return $login; } diff --git a/htdocs/includes/login/functions_ldap.php b/htdocs/includes/login/functions_ldap.php index 161e02585a5..39f7d59fde6 100644 --- a/htdocs/includes/login/functions_ldap.php +++ b/htdocs/includes/login/functions_ldap.php @@ -24,11 +24,13 @@ /** - * @brief Check user and password - * @param usertotest Login - * @param passwordtotest Password - * @return string Login if ok, '' if ko. - * @remarks If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * Check validity of user/password/entity + * If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * + * @param string $usertotest Login + * @param string $passwordtotest Password + * @param int $entitytotest Number of instance (always 1 if module multicompany not enabled) + * @return string Login if OK, '' if KO */ function check_user_password_ldap($usertotest,$passwordtotest) { diff --git a/htdocs/includes/login/functions_myopenid.php b/htdocs/includes/login/functions_myopenid.php index a72d576b6b0..746e5baae86 100644 --- a/htdocs/includes/login/functions_myopenid.php +++ b/htdocs/includes/login/functions_myopenid.php @@ -24,10 +24,13 @@ /** - * \brief Check user and password - * \param usertotest Login - * \param passwordtotest Password - * \return string Login if ok, '' if ko. + * Check validity of user/password/entity + * If test is ko, reason must be filled into $_SESSION["dol_loginmesg"] + * + * @param string $usertotest Login + * @param string $passwordtotest Password + * @param int $entitytotest Number of instance (always 1 if module multicompany not enabled) + * @return string Login if OK, '' if KO */ function check_user_password_myopenid($usertotest,$passwordtotest) { diff --git a/test/phpunit/AdherentTest.php b/test/phpunit/AdherentTest.php index c769ebe565b..a407b9abea2 100644 --- a/test/phpunit/AdherentTest.php +++ b/test/phpunit/AdherentTest.php @@ -39,13 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers Adherent + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/BuildDocTest.php b/test/phpunit/BuildDocTest.php index 7e549de1464..b9e5b9db6d9 100644 --- a/test/phpunit/BuildDocTest.php +++ b/test/phpunit/BuildDocTest.php @@ -63,40 +63,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers User - * @xcovers Translate - * @xcovers Conf - * @xcovers CommonObject - * @xcovers Facture - * @xcovers Commande - * @xcovers Propal - * @xcovers Expedition - * @xcovers Fichinter - * @xcovers Project - * - * @xcovers ModelePDFFactures - * @xcovers pdf_crabe - * @xcovers pdf_oursin - * - * @xcovers ModelePDFCommandes - * @xcovers pdf_edison - * @xcovers pdf_einstein - * - * @xcovers ModelePDFPropales - * @xcovers pdf_propale_azur - * @xcovers pdf_propale_jaune - * - * @xcovers ModelePDFProjects - * @xcovers pdf_baleine - * - * @xcovers ModelePDFFicheinter - * @xcovers pdf_soleil - * - * @xcovers ModelePDFExpedition - * @xcovers pdf_expedition_merou - * @xcovers pdf_expedition_rouget + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/CMailFileTest.php b/test/phpunit/CMailFileTest.php index 6d706745422..3d6cb770ad5 100755 --- a/test/phpunit/CMailFileTest.php +++ b/test/phpunit/CMailFileTest.php @@ -39,13 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers Adherent + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php index c4b2bbf1c3d..4d670cdf660 100755 --- a/test/phpunit/CategorieTest.php +++ b/test/phpunit/CategorieTest.php @@ -39,13 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers Categorie + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/ChargeSocialesTest.php b/test/phpunit/ChargeSocialesTest.php index 344d07f5194..d2119d66f6f 100755 --- a/test/phpunit/ChargeSocialesTest.php +++ b/test/phpunit/ChargeSocialesTest.php @@ -39,13 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers ChargeSociales + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/CommandeFournisseurTest.php b/test/phpunit/CommandeFournisseurTest.php index f5d2d0272bb..e1e904d775e 100644 --- a/test/phpunit/CommandeFournisseurTest.php +++ b/test/phpunit/CommandeFournisseurTest.php @@ -40,9 +40,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers CommandeFournisseur - * @xcovers CommandeFournisseurLigne + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/CommandeTest.php b/test/phpunit/CommandeTest.php index b6d0fcb969c..92df6d3bdfc 100644 --- a/test/phpunit/CommandeTest.php +++ b/test/phpunit/CommandeTest.php @@ -39,9 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers Commande - * @xcovers OrderLine + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/CommonObjectTest.php b/test/phpunit/CommonObjectTest.php index 4f45d6270ba..cff65e239b6 100644 --- a/test/phpunit/CommonObjectTest.php +++ b/test/phpunit/CommonObjectTest.php @@ -40,12 +40,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers User - * @xcovers Translate - * @xcovers Conf - * @xcovers CommonObject + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/CompanyBankAccountTest.php b/test/phpunit/CompanyBankAccountTest.php index 6a0bce64fc7..dee3ac41be1 100644 --- a/test/phpunit/CompanyBankAccountTest.php +++ b/test/phpunit/CompanyBankAccountTest.php @@ -39,8 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers CompanyBankAccount + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/ContratTest.php b/test/phpunit/ContratTest.php index e9061b6182b..80f7e215c90 100644 --- a/test/phpunit/ContratTest.php +++ b/test/phpunit/ContratTest.php @@ -39,14 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers Contrat - * @xcovers ContratLigne + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/DateLibTest.php b/test/phpunit/DateLibTest.php index 4b2f3e83c2a..9e99b77bd98 100644 --- a/test/phpunit/DateLibTest.php +++ b/test/phpunit/DateLibTest.php @@ -39,7 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * When not cover is provided. We use everything. + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/DiscountTest.php b/test/phpunit/DiscountTest.php index 615bb5db94f..40e1e23c649 100755 --- a/test/phpunit/DiscountTest.php +++ b/test/phpunit/DiscountTest.php @@ -39,6 +39,8 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** + * Class for PHPUnit tests + * * @backupGlobals disabled * @backupStaticAttributes enabled * @remarks backupGlobals must be disabled to have db,conf,user and lang not erased. diff --git a/test/phpunit/ExportTest.php b/test/phpunit/ExportTest.php index 0f0807ab6bf..ef881c4d94d 100755 --- a/test/phpunit/ExportTest.php +++ b/test/phpunit/ExportTest.php @@ -42,7 +42,7 @@ if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is /** - * When no cover is provided. We use everything. + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled @@ -140,7 +140,7 @@ class ExportTest extends PHPUnit_Framework_TestCase $objexport->array_export_alias[0]=$array_alias; dol_mkdir($conf->export->dir_temp); - + $model='csv'; // Build export file @@ -178,7 +178,7 @@ class ExportTest extends PHPUnit_Framework_TestCase $datatoexport='societe_1'; $array_selected = array("s.rowid"=>1, "s.nom"=>2); // Mut be fields found into declaration of dataset $model='csv'; - + $objexport=new Export($db); $result=$objexport->load_arrays($user,$datatoexport); diff --git a/test/phpunit/FactureFournisseurTest.php b/test/phpunit/FactureFournisseurTest.php index 0f12ede709e..de8c6410d4c 100644 --- a/test/phpunit/FactureFournisseurTest.php +++ b/test/phpunit/FactureFournisseurTest.php @@ -39,14 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers User - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers FactureFournisseur + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/FactureTest.php b/test/phpunit/FactureTest.php index 12d77f039d1..58463fbf3be 100644 --- a/test/phpunit/FactureTest.php +++ b/test/phpunit/FactureTest.php @@ -39,23 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers User - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers Facture - * @xcovers FactureLigne - * @xcovers ModeleNumRefFactures - * @xcovers InterfaceLogevents - * @xcovers InterfaceActionsAuto - * @xcovers InterfaceLdapsynchro - * @xcovers InterfaceNotification - * @xcovers InterfacePhenixsynchro - * @xcovers InterfacePropalWorkflow - * @xcovers InterfaceWebcalsynchro + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/FunctionsTest.php b/test/phpunit/FunctionsTest.php index decad254bb2..f23957eb95c 100755 --- a/test/phpunit/FunctionsTest.php +++ b/test/phpunit/FunctionsTest.php @@ -41,6 +41,7 @@ if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is /** + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/ImportTest.php b/test/phpunit/ImportTest.php index e893293297a..a89f6b769a8 100755 --- a/test/phpunit/ImportTest.php +++ b/test/phpunit/ImportTest.php @@ -41,7 +41,7 @@ if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is /** - * When no cover is provided. We use everything. + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/ModulesTest.php b/test/phpunit/ModulesTest.php index f3f4ef78624..33a8b978a0f 100755 --- a/test/phpunit/ModulesTest.php +++ b/test/phpunit/ModulesTest.php @@ -38,55 +38,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DolibarrModules - * @xcovers modAccounting - * @xcovers modAdherent - * @xcovers modAgenda - * @xcovers modBanque - * @xcovers modBarcode - * @xcovers modBookmark - * @xcovers modBoutique - * @xcovers modCashDesk - * @xcovers modCategorie - * @xcovers modClickToDial - * @xcovers modCommande - * @xcovers modComptabilite - * @xcovers modContrat - * @xcovers modDeplacement - * @xcovers modDocument - * @xcovers modDon - * @xcovers modECM - * @xcovers modExpedition - * @xcovers modExport - * @xcovers modExternalRss - * @xcovers modExternalSite - * @cxovers modFacture - * @xcovers modFckeditor - * @xcovers modFicheinter - * @xcovers modFournisseur - * @xcovers modFTP - * @xcovers modGeoIPMaxmind - * @xcovers modGravatar - * @xcovers modImport - * @xcovers modLabel - * @xcovers modLdap - * @xcovers modMailing - * @xcovers modMantis - * @xcovers modNotification - * @xcovers modPaybox - * @xcovers modPaypal - * @xcovers modPrelevement - * @xcovers modProduct - * @xcovers modProjet - * @xcovers modPropale - * @xcovers modService - * @xcovers modSociete - * @xcovers modStock - * @xcovers modSyslog - * @xcovers modTax - * @xcovers modUser - * @xcovers modWebServices + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/PropalTest.php b/test/phpunit/PropalTest.php index 8a4f69ed047..1b9433ae33e 100644 --- a/test/phpunit/PropalTest.php +++ b/test/phpunit/PropalTest.php @@ -39,9 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers Propal - * @xcovers PropaleLigne + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/SecurityTest.php b/test/phpunit/SecurityTest.php index c63bb00169e..d522eeeac0a 100755 --- a/test/phpunit/SecurityTest.php +++ b/test/phpunit/SecurityTest.php @@ -28,6 +28,7 @@ global $conf,$user,$langs,$db; require_once 'PHPUnit/Autoload.php'; require_once dirname(__FILE__).'/../../htdocs/master.inc.php'; require_once dirname(__FILE__).'/../../htdocs/lib/functions.lib.php'; +require_once dirname(__FILE__).'/../../htdocs/lib/security.lib.php'; if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); @@ -42,13 +43,7 @@ if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers Adherent + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled @@ -109,6 +104,7 @@ class SecurityTest extends PHPUnit_Framework_TestCase print __METHOD__."\n"; } + /** */ protected function tearDown() @@ -155,6 +151,31 @@ class SecurityTest extends PHPUnit_Framework_TestCase return $result; } + /** + */ + public function testCheckLoginPassEntity() + { + $login=checkLoginPassEntity('loginbidon','passwordbidon',1,array('dolibarr')); + print __METHOD__." login=".$login."\n"; + $this->assertEquals($login,''); + + $login=checkLoginPassEntity('admin','passwordbidon',1,array('dolibarr')); + print __METHOD__." login=".$login."\n"; + $this->assertEquals($login,''); + + $login=checkLoginPassEntity('admin','admin',1,array('dolibarr')); // Should works because admin/admin exists + print __METHOD__." login=".$login."\n"; + $this->assertEquals($login,'admin'); + + $login=checkLoginPassEntity('admin','admin',1,array('http','dolibarr')); // Should work because of second authetntication method + print __METHOD__." login=".$login."\n"; + $this->assertEquals($login,'admin'); + + $login=checkLoginPassEntity('admin','admin',1,array('forceuser')); + print __METHOD__." login=".$login."\n"; + $this->assertEquals($login,''); // Expected '' because should failed because login 'auto' does not exists + } + /** */ /* public function testAnalyseSqlAndScript() diff --git a/test/phpunit/SocieteTest.php b/test/phpunit/SocieteTest.php index 4eb3c5b0979..393b50d9363 100755 --- a/test/phpunit/SocieteTest.php +++ b/test/phpunit/SocieteTest.php @@ -39,10 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Conf - * @xcovers Societe + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/UserGroupTest.php b/test/phpunit/UserGroupTest.php index 41959ef4f15..a87468e4e28 100644 --- a/test/phpunit/UserGroupTest.php +++ b/test/phpunit/UserGroupTest.php @@ -39,13 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers UserGroup + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/UserTest.php b/test/phpunit/UserTest.php index c1d5d175a02..2b4ae3280d3 100644 --- a/test/phpunit/UserTest.php +++ b/test/phpunit/UserTest.php @@ -39,13 +39,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * - * @xcovers DoliDb - * @xcovers Translate - * @xcovers Conf - * @xcovers Interfaces - * @xcovers CommonObject - * @xcovers User + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled diff --git a/test/phpunit/WebservicesTest.php b/test/phpunit/WebservicesTest.php index a24f4e58521..cfc9b80d94c 100755 --- a/test/phpunit/WebservicesTest.php +++ b/test/phpunit/WebservicesTest.php @@ -41,7 +41,7 @@ $conf->global->MAIN_DISABLE_ALL_MAILS=1; /** - * When no cover is provided. We use everything. + * Class for PHPUnit tests * * @backupGlobals disabled * @backupStaticAttributes enabled