mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Disable CSS/JS concatenation during legacy unit tests
This commit is contained in:
parent
ad86e03c5e
commit
9a30c10ce8
2 changed files with 5 additions and 3 deletions
|
|
@ -8,9 +8,10 @@
|
|||
class FrontEndFileHandler extends Handler
|
||||
{
|
||||
/**
|
||||
* Minification configuration.
|
||||
* Minification and concatenation configuration.
|
||||
*/
|
||||
public static $minify = null;
|
||||
public static $concat = null;
|
||||
|
||||
/**
|
||||
* Map for css
|
||||
|
|
@ -353,7 +354,7 @@ class FrontEndFileHandler extends Handler
|
|||
$map = &$this->cssMap;
|
||||
$mapIndex = &$this->cssMapIndex;
|
||||
$minify = self::$minify !== null ? self::$minify : (config('view.minify_scripts') ?: 'common');
|
||||
$concat = strpos(config('view.concat_scripts'), 'css') !== false;
|
||||
$concat = strpos(self::$concat !== null ? self::$concat : config('view.concat_scripts'), 'css') !== false;
|
||||
$this->_sortMap($map, $mapIndex);
|
||||
|
||||
// Minify all scripts, and compile LESS/SCSS into CSS.
|
||||
|
|
@ -446,7 +447,7 @@ class FrontEndFileHandler extends Handler
|
|||
}
|
||||
|
||||
$minify = self::$minify !== null ? self::$minify : (config('view.minify_scripts') ?: 'common');
|
||||
$concat = strpos(config('view.concat_scripts'), 'js') !== false;
|
||||
$concat = strpos(self::$concat !== null ? self::$concat : config('view.concat_scripts'), 'js') !== false;
|
||||
$this->_sortMap($map, $mapIndex);
|
||||
|
||||
// Minify all scripts.
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ class FrontEndFileHandlerTest extends \Codeception\TestCase\Test
|
|||
HTMLDisplayHandler::$reservedCSS = '/xxx$/';
|
||||
HTMLDisplayHandler::$reservedJS = '/xxx$/';
|
||||
FrontEndFileHandler::$minify = 'none';
|
||||
FrontEndFileHandler::$concat = 'none';
|
||||
|
||||
$this->specify("js(head)", function() {
|
||||
$handler = new FrontEndFileHandler();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue