summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/SafeString_Test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/tests/SafeString_Test.php b/modules/gallery/tests/SafeString_Test.php
index fdab5c58..2c07d934 100644
--- a/modules/gallery/tests/SafeString_Test.php
+++ b/modules/gallery/tests/SafeString_Test.php
@@ -106,6 +106,12 @@ class SafeString_Test extends Unit_Test_Case {
$this->assert_equal($expected, $safe_string_2);
}
+ public function purify_safe_html_test() {
+ $safe_string = SafeString::of_safe_html("hello <p >world</p>");
+ $actual = SafeString::purify($safe_string);
+ $this->assert_equal("hello <p >world</p>", $actual);
+ }
+
public function of_fluid_api_test() {
$escaped_string = SafeString::of("Foo's bar")->for_js();
$this->assert_equal('"Foo\'s bar"', $escaped_string);