/** * @param LoadCssEvent $event */ public function onLoadCss(LoadCssEvent $event) { $activeTheme = $this->themeRegistry->getActiveTheme(); if ($activeTheme) { $event->addCss('theme', $activeTheme->getStyles()); } }
public function testAddCss() { $group = 'test'; $files = array('styles.css'); $this->assetsConfiguration->expects($this->once())->method('addCss')->with($group, $files); $this->event->addCss($group, $files); }