/** * Tests the popover method. * * @return void * * @since 3.6.0 */ public function testPopover() { // Initialise the popover script JHtmlBootstrap::popover(); // Get the document instance $document = JFactory::getDocument(); $this->assertArrayHasKey('/media/jui/js/bootstrap.min.js', $document->_scripts, 'Verify that the alert method initialises Bootstrap as well'); $this->assertEquals($document->_script['text/javascript'], 'jQuery(function($){ $(".hasPopover").popover({"html": true,"trigger": "hover focus","container": "body"}); });', 'Verify that the popover script is initialised'); }