diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-04-24 15:34:09 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-04-24 15:34:09 +0200 |
commit | 0d3ddd9e11eeafbc51d95e20226117bc3424bcaf (patch) | |
tree | c9997e4b53664f1028251aadebcd5a769c6a8351 /tests/lib/template.php | |
parent | f9091a85847124a12dd459d5cb9683b400d69b6b (diff) | |
download | nextcloud-server-0d3ddd9e11eeafbc51d95e20226117bc3424bcaf.tar.gz nextcloud-server-0d3ddd9e11eeafbc51d95e20226117bc3424bcaf.zip |
Remove redundant test case for non-HTML string.
Diffstat (limited to 'tests/lib/template.php')
-rw-r--r-- | tests/lib/template.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/lib/template.php b/tests/lib/template.php index b3d0975b793..40aec402347 100644 --- a/tests/lib/template.php +++ b/tests/lib/template.php @@ -39,7 +39,9 @@ class Test_TemplateFunctions extends PHPUnit_Framework_TestCase { p($badString); $result = ob_get_clean(); $this->assertEquals('<script>alert('Hacked!');</script>', $result); + } + public function testPNormalString() { $goodString = 'This is a good string without HTML.'; ob_start(); p($goodString); @@ -47,15 +49,6 @@ class Test_TemplateFunctions extends PHPUnit_Framework_TestCase { $this->assertEquals('This is a good string without HTML.', $result); } - public function testPNormalString() { - $normalString = "This is a good string!"; - ob_start(); - p($normalString); - $result = ob_get_clean(); - - $this->assertEquals("This is a good string!", $result); - } - public function testPrintUnescaped() { $htmlString = "<script>alert('xss');</script>"; |