forked from Wavyzz/dolibarr
FIX duplicate jquery.js files
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -399,4 +399,23 @@ class FilesLibTest extends PHPUnit_Framework_TestCase
|
|||||||
print __METHOD__." result=".join(',',$result)."\n";
|
print __METHOD__." result=".join(',',$result)."\n";
|
||||||
$this->assertEquals(0,count($result));
|
$this->assertEquals(0,count($result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* testDolDirList
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @depends testDolCompressUnCompress
|
||||||
|
* The depends says test is run only if previous is ok
|
||||||
|
*/
|
||||||
|
public function testDolDirList()
|
||||||
|
{
|
||||||
|
global $conf,$user,$langs,$db;
|
||||||
|
|
||||||
|
// Scan dir to guaruante we on't have library jquery twice (we accept exception of duplicte into ckeditor because all dir is removed for debian package, so there is no duplicate).
|
||||||
|
$founddirs=dol_dir_list(DOL_DOCUMENT_ROOT.'/includes/', 'files', 1, '^jquery\.js', array('ckeditor'));
|
||||||
|
print __METHOD__." count(founddirs)=".count($founddirs)."\n";
|
||||||
|
$this->assertEquals(1,count($founddirs));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user