Example #1
0
 public function testFactory()
 {
     $link = Link::make('stylesheet', 'text/css', 'theme.css', 'screen');
     $this->assertEquals('stylesheet', $link->getRel());
     $this->assertEquals('text/css', $link->getType());
     $this->assertEquals('theme.css', $link->getHref());
     $this->assertEquals('screen', $link->getMedia());
 }
 public function testAddLink()
 {
     $this->layout->addLink(Link::make("stylesheet", 'text/css', 'theme.css'));
     $html = $this->layout->render();
     $this->assertContains('<link rel="stylesheet" href="theme.css" type="text/css">', $html);
 }