blob: 7e84e66501be1df931dad3556cae98f3b187ddee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Html;
use PhpMyAdmin\Html\MySQLDocumentation;
use PhpMyAdmin\Tests\AbstractTestCase;
/**
* @covers \PhpMyAdmin\Html\MySQLDocumentation
*/
class MySQLDocumentationTest extends AbstractTestCase
{
public function testShowDocumentation(): void
{
$GLOBALS['server'] = '99';
$GLOBALS['cfg']['ServerDefault'] = 1;
$this->assertEquals(
'<a href="index.php?route=/url&url=https%3A%2F%2Fdocs.phpmyadmin.net%2Fen'
. '%2Flatest%2Fpage.html%23anchor" target="documentation"><img src="themes/dot.gif"'
. ' title="Documentation" alt="Documentation" class="icon ic_b_help"></a>',
MySQLDocumentation::showDocumentation('page', 'anchor')
);
}
}
|