/** * Tests the button method * * @return void * * @since 3.0 * * @covers JHtmlIcons::button */ public function testButton() { $button = array('link' => JRoute::_('index.php?option=com_content&task=article.add'), 'image' => 'header/icon-48-article-add.png', 'text' => JText::_('MOD_QUICKICON_ADD_NEW_ARTICLE')); $this->assertThat(JHtmlIcons::button($button), $this->isType('string'), 'JHtmlIcons::button() should return a string with the HTML markup of the button'); }