Skip to content

Commit

Permalink
Fix failing unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Sep 9, 2012
1 parent a374103 commit 175e5cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/cms/toolbar/button/slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class JToolbarButtonSlider extends JToolbarButton
*
* @since 3.0
*/
public function fetchButton($type = 'Popup', $name = '', $text = '', $url = '', $width = 640, $height = 480, $onClose = '')
public function fetchButton($type = 'Slider', $name = '', $text = '', $url = '', $width = 640, $height = 480, $onClose = '')
{
JHtml::script('jui/cms.js', false, true);

Expand Down Expand Up @@ -71,7 +71,7 @@ public function fetchButton($type = 'Popup', $name = '', $text = '', $url = '',
*/
public function fetchId($type, $name)
{
return $this->_parent->getName() . '-' . "popup-$name";
return $this->_parent->getName() . '-' . 'slider-' . $name;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/suites/libraries/html/JHtmlBootstrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function testEndAccordion()
{
$this->assertThat(
JHtml::_('bootstrap.endAccordion'),
$this->equalTo('</div></div>')
$this->equalTo('</div>')
);
}

Expand Down

0 comments on commit 175e5cc

Please sign in to comment.