2
0
forked from Wavyzz/dolibarr

Clean code. Add a phpunit test to avoid duplicate jquery.

This commit is contained in:
Laurent Destailleur
2022-12-24 15:06:32 +01:00
parent b80413db2b
commit 685a7dbd59
16 changed files with 226 additions and 2833 deletions

View File

@@ -158,7 +158,7 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase
}
/**
* testSql
* testPHP
*
* @return string
*/
@@ -171,8 +171,7 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase
$db=$this->savdb;
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
$filesarray = dol_dir_list(DOL_DOCUMENT_ROOT, 'files', 1, '\.php', null, 'fullname', SORT_ASC, 0, 0, '', 1);
//$filesarray = dol_dir_list(DOL_DOCUMENT_ROOT, 'files', 1, '\.php', null, 'fullname');
$filesarray = dol_dir_list(DOL_DOCUMENT_ROOT, 'files', 1, '\.php', null, 'fullname', SORT_ASC, 0, 1, '', 1);
foreach ($filesarray as $key => $file) {
if (preg_match('/\/htdocs\/includes\//', $file['fullname'])) {