forked from Wavyzz/dolibarr
Clean code. Add a phpunit test to avoid duplicate jquery.
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user