Esempio n. 1
0
 /**
  * Tests the buttons and button methods
  *
  * @return  void
  *
  * @since   3.0
  */
 public function testButtons()
 {
     $buttons = array(array('link' => JRoute::_('index.php?option=com_content&task=article.add'), 'image' => 'file-add', 'icon' => 'header/icon-48-article-add.png', 'text' => JText::_('MOD_QUICKICON_ADD_NEW_ARTICLE')), array('link' => JRoute::_('index.php?option=com_installer'), 'image' => 'puzzle', 'icon' => 'header/icon-48-extension.png', 'text' => JText::_('MOD_QUICKICON_EXTENSION_MANAGER'), 'access' => false), array('link' => JRoute::_('index.php?option=com_templates'), 'image' => 'eye', 'icon' => 'header/icon-48-themes.png', 'text' => JText::_('MOD_QUICKICON_TEMPLATE_MANAGER')));
     $this->assertThat(JHtmlIcons::buttons($buttons), $this->isType('string'), 'JHtmlIcons::buttons() should return a string with the HTML markup of the button(s)');
 }
Esempio n. 2
0
 /**
  * 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');
 }