Skip to content

Commit

Permalink
Refactor PMA_showDocu_test
Browse files Browse the repository at this point in the history
Move PMA_showDocu_test into UtilTest

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
  • Loading branch information
MauricioFauth committed Sep 30, 2017
1 parent c97078d commit 02f993e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 50 deletions.
18 changes: 18 additions & 0 deletions test/classes/UtilTest.php
Expand Up @@ -2050,4 +2050,22 @@ public function testBackquoteForbidenWords()
}
}
}

/**
* Test for Util::showDocu
*
* @return void
*
* @covers PhpMyAdmin\Util::showDocu
*/
public function testShowDocu()
{
$GLOBALS['server'] = '99';
$GLOBALS['cfg']['ServerDefault'] = 1;

$this->assertEquals(
'<a href="./url.php?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>',
Util::showDocu('page', 'anchor')
);
}
}
50 changes: 0 additions & 50 deletions test/libraries/common/PMA_showDocu_test.php

This file was deleted.

0 comments on commit 02f993e

Please sign in to comment.