/** * @group Core */ public function test_getCompiledBaseCss() { $this->setStylesheetCacheBuster(self::FIRST_CACHE_BUSTER_SS); $staticStylesheetList = array_merge($this->getCorePluginStylesheetFiles(), array($this->getCoreThemeStylesheet())); $minimalAssetFetcher = new StaticUIAssetFetcher(array_reverse($staticStylesheetList), $staticStylesheetList, $this->getCoreTheme()); $this->assetManager->setMinimalStylesheetFetcher($minimalAssetFetcher); $this->mergedAsset = $this->assetManager->getCompiledBaseCss(); $this->validateMergedStylesheet(); }
public static function compileCustomStylesheets($files) { $assetManager = new AssetManager(); $fetcher = new StaticUIAssetFetcher($files, $priorityOrder = array(), $theme = null); $assetManager->setMinimalStylesheetFetcher($fetcher); return $assetManager->getCompiledBaseCss()->getContent(); }