From: Andreas Fischer Date: Thu, 24 Apr 2014 13:36:02 +0000 (+0200) Subject: Split testP() tests into multiple methods. X-Git-Tag: v7.0.0alpha2~352^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88778b569e73dd2319c547be53df6aab6b8fa667;p=nextcloud-server.git Split testP() tests into multiple methods. --- diff --git a/tests/lib/template.php b/tests/lib/template.php index 40aec402347..299eb2b9369 100644 --- a/tests/lib/template.php +++ b/tests/lib/template.php @@ -27,13 +27,15 @@ class Test_TemplateFunctions extends PHPUnit_Framework_TestCase { $loader->load('OC_Template'); } - public function testP() { + public function testPJavaScript() { $badString = ''; ob_start(); p($badString); $result = ob_get_clean(); $this->assertEquals('<img onload="alert(1)" />', $result); + } + public function testPJavaScriptWithScriptTags() { $badString = ""; ob_start(); p($badString);