Commit 6b96686c authored by catch's avatar catch

Issue #2616846 by alexpott: PHPUnit is broken again from the command line

parent 4f9265c8
......@@ -10,20 +10,6 @@
use Drupal\Core\Asset\LibraryDiscoveryParser;
use Drupal\Tests\UnitTestCase;
if (!defined('CSS_AGGREGATE_DEFAULT')) {
define('CSS_AGGREGATE_DEFAULT', 0);
define('CSS_AGGREGATE_THEME', 100);
define('CSS_BASE', -200);
define('CSS_LAYOUT', -100);
define('CSS_COMPONENT', 0);
define('CSS_STATE', 100);
define('CSS_THEME', 200);
define('JS_SETTING', -200);
define('JS_LIBRARY', -100);
define('JS_DEFAULT', 0);
define('JS_THEME', 100);
}
/**
* @coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryParser
* @group Asset
......@@ -575,3 +561,37 @@ public function setFileValidUri($source, $valid) {
}
}
if (!defined('CSS_AGGREGATE_DEFAULT')) {
define('CSS_AGGREGATE_DEFAULT', 0);
}
if (!defined('CSS_AGGREGATE_THEME')) {
define('CSS_AGGREGATE_THEME', 100);
}
if (!defined('CSS_BASE')) {
define('CSS_BASE', -200);
}
if (!defined('CSS_LAYOUT')) {
define('CSS_LAYOUT', -100);
}
if (!defined('CSS_COMPONENT')) {
define('CSS_COMPONENT', 0);
}
if (!defined('CSS_STATE')) {
define('CSS_STATE', 100);
}
if (!defined('CSS_THEME')) {
define('CSS_THEME', 200);
}
if (!defined('JS_SETTING')) {
define('JS_SETTING', -200);
}
if (!defined('JS_LIBRARY')) {
define('JS_LIBRARY', -100);
}
if (!defined('JS_DEFAULT')) {
define('JS_DEFAULT', 0);
}
if (!defined('JS_THEME')) {
define('JS_THEME', 100);
}
Markdown is supported
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