public function testCloseModal() { $tag = new Button('foo'); $tag->closeModal('bar'); $this->assertEquals('<a class="btn btn-default" href="#" data-dismiss="modal" data-target="#bar">foo</a>', $tag->getHTML()); }
/** * @param string $idModal * @return $this */ public function closeModal($idModal) { $this->uiElement->closeModal($idModal); return $this; }