Skip to content
Snippets Groups Projects
Commit ba60e220 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

holtine #64143 fix test failure

parent 0951ca77
Branches
Tags
5 merge requests!2334Master,!2318Master,!2316Hotline master,!2313Dev#61993 explo les icones d admin en front ne doivent pas cacher le texte,!2308holtine #64143 improve cache key generation for CSS and JS. Now include bokeh minor version.
Pipeline #2329 passed with stage
in 13 minutes and 19 seconds
......@@ -207,13 +207,16 @@ class ScriptLoaderVersionHashTest extends PHPUnit_Framework_TestCase {
public function setUp() {
Class_ScriptLoader::resetInstance();
$scriptloadder = Class_ScriptLoader::getInstance();
$scriptloadder->setTimeSource(new TimeSourceForTest('2017-08-31 11:00:00'));
$this->_html = Class_ScriptLoader::getInstance()
->addStyleSheet('public/css/nuages.css')
->addStyleSheet('normal.css?param=value')
->addScript('opac/cycle.min')
->html();
$this->_versionHash = md5(BOKEH_MAJOR_VERSION);
$this->_versionHash = $scriptloadder->getCacheHash();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment