Add testcase for documenation link
This commit is contained in:
parent
7b6043c619
commit
ef4f1717b2
@ -27,6 +27,12 @@ class PMA_sanitize_test extends PHPUnit_Framework_TestCase
|
||||
PMA_sanitize('[a@http://www.phpmyadmin.net/@target]link[/a]'));
|
||||
}
|
||||
|
||||
public function testLinkDoc()
|
||||
{
|
||||
$this->assertEquals('<a href="./Documentation.html">doc</a>',
|
||||
PMA_sanitize('[a@./Documentation.html]doc[/a]'));
|
||||
}
|
||||
|
||||
public function testHtmlTags()
|
||||
{
|
||||
$this->assertEquals('<div onclick="">',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user