assertEquals(
'',
PMA_Util::getIcon('b_comment.png')
);
}
function testGetIconWithActionLinksMode()
{
$GLOBALS['cfg']['ActionLinksMode'] = 'icons';
$this->assertEquals(
'',
PMA_Util::getIcon('b_comment.png')
);
}
function testGetIconAlternate()
{
$GLOBALS['cfg']['ActionLinksMode'] = 'icons';
$alternate_text = 'alt_str';
$this->assertEquals(
'',
PMA_Util::getIcon('b_comment.png', $alternate_text)
);
}
function testGetIconWithForceText()
{
$GLOBALS['cfg']['ActionLinksMode'] = 'icons';
$alternate_text = 'alt_str';
// Here we are checking for an icon embeded inside a span (i.e not a menu
// bar icon
$this->assertEquals(
' ' . $alternate_text . '',
PMA_Util::getIcon('b_comment.png', $alternate_text, true, false)
);
}
}