2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for PMA_showDocu from common.lib.php
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_showDocu.php
8 * @group common.lib-tests
14 require_once 'libraries/common.lib.php';
16 class PMA_showDocu_test
extends PHPUnit_Framework_TestCase
18 function testShowDocuReplaceHelpImg()
20 $GLOBALS['cfg']['ReplaceHelpImg'] = true;
23 $expected = '<a href="Documentation.html#' . $anchor . '" target="documentation"><img class="icon ic_b_help_s" src="themes/dot.gif" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>';
25 $this->assertEquals($expected, PMA_showDocu($anchor));
29 function testShowDocuNotReplaceHelpImg()
31 $GLOBALS['cfg']['ReplaceHelpImg'] = false;
34 $expected = '[<a href="Documentation.html#' . $anchor . '" target="documentation">' . __('Documentation') . '</a>]';
36 $this->assertEquals($expected, PMA_showDocu($anchor));