/** * Tests the fetchButton method * * @return void * * @since 3.2 */ public function testFetchButton() { $html = "<button onclick=\"Joomla.popupWindow('help/en-GB/JHELP_CONTENT_ARTICLE_MANAGER.html', 'JHELP', 700, 500, 1)\" rel=\"help\" class=\"btn btn-small\">" . PHP_EOL . "\t<span class=\"icon-question-sign\"></span>" . PHP_EOL . "\tJTOOLBAR_HELP</button>" . PHP_EOL; $this->assertEquals($this->object->fetchButton('Help', 'JHELP_CONTENT_ARTICLE_MANAGER'), $html); }
/** * Tests the fetchButton method * * @return void * * @since 3.2 */ public function testFetchButton() { $html = "<button onclick=\"Joomla.popupWindow('help/en-GB/Content_Article_Manager.html', 'Help', 700, 500, 1)\" rel=\"help\" class=\"btn btn-small\">\n" . "\t<span class=\"icon-question-sign\"></span>\n" . "\tHelp</button>\n"; $this->assertEquals($this->object->fetchButton('Help', 'JHELP_CONTENT_ARTICLE_MANAGER'), $html); }