public function create(View $view)
 {
     ScriptCollection::setGlobalDebug($this->config->get('app.debug'));
     $view->lang = $this->translator->getLocale();
     $view->styles = $this->scripts->get('style');
     $view->headScripts = $this->scripts->get('head');
     $view->bodyScripts = $this->scripts->get('body');
     $view->conditionals = [];
     $view->title = $this->getTitle();
     $view->description = $this->getDescription();
     $view->gaCode = $this->getGaCode();
 }
 /** @test */
 public function cacheBusterStringCanBeAddedToIndivicualScripts()
 {
     $collection = new ScriptCollection(false);
     $collection->add(['foo.css', 'foo.min.css', 'bar']);
     $collection->add(['bar.css', 'bar.min.css', 'baz']);
     $this->assertEquals(['foo.css?bar', 'bar.css?baz'], $collection->all());
 }