/** * Test... * * @return void */ public function testAddFavicon() { $this->object->addFavicon('templates\\protostar\\favicon.ico'); $this->assertThat($this->object->_links['templates/protostar/favicon.ico'], $this->equalTo(array('relation' => 'shortcut icon', 'relType' => 'rel', 'attribs' => array('type' => 'image/vnd.microsoft.icon'))), 'JDocumentHtml::addFavicon did not work'); $this->object->addFavicon('favicon.gif', null); $this->assertThat($this->object->_links['favicon.gif'], $this->equalTo(array('relation' => 'shortcut icon', 'relType' => 'rel', 'attribs' => array('type' => null))), 'JDocumentHtml::addFavicon did not work'); }
/** * @testdox Test that addFavicon returns an instance of $this */ public function testEnsureAddFaviconReturnsThisObject() { $this->assertSame($this->object, $this->object->addFavicon('templates\\protostar\\favicon.ico')); }