Example #1
0
 /**
  * Initializes the HeadLink element
  * @return $this
  */
 public function initHeadLink()
 {
     $cssPath = $this->options->getCss()->getPath();
     $stylesheets = $this->orderByPriority($this->options->getCss()->getStylesheets());
     foreach ($stylesheets as $css) {
         if (isset($css["media"])) {
             $this->headLink->appendStylesheet($cssPath . "/" . $css["name"], $css["media"], false, array());
         } else {
             $this->headLink->appendStylesheet($cssPath . "/" . $css["name"], 'screen', false, array());
         }
     }
     return $this;
 }
 public function testAssetsArraysAreUnchanged()
 {
     $this->assertEquals($this->config['css']['stylesheets'], $this->options->getCss()->getStylesheets());
     $this->assertEquals($this->config['js']['inline'], $this->options->getJs()->getInline());
     $this->assertEquals($this->config['js']['head'], $this->options->getJs()->getHead());
 }