Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / test / libraries / common / PMA_showDocu_test.php
blob9941c15c2984f4ea59a56d01db2d27ad5503c638
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test for PMA_showDocu from common.lib.php
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_showDocu.php
8 * @group common.lib-tests
9 */
12 * Include to test.
14 require_once 'libraries/common.lib.php';
16 class PMA_showDocu_test extends PHPUnit_Framework_TestCase
18 function testShowDocuReplaceHelpImg()
20 $GLOBALS['cfg']['ReplaceHelpImg'] = true;
22 $anchor = "relation";
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;
33 $anchor = "relation";
34 $expected = '[<a href="Documentation.html#' . $anchor . '" target="documentation">' . __('Documentation') . '</a>]';
36 $this->assertEquals($expected, PMA_showDocu($anchor));