summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-03 11:28:42 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-03 11:28:42 -0700
commit1dca0b9d6be5a96e79e3de776e231e21ed824589 (patch)
treed606df9de710380ee9a51e15ee62fd13b9d2db02 /modules/gallery
parent82dd468002d5d21a5c8c391d6fce543b3df43de1 (diff)
Fix test for new purifier API.
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/tests/Html_Helper_Test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/tests/Html_Helper_Test.php b/modules/gallery/tests/Html_Helper_Test.php
index 8f665e0c..1662b866 100644
--- a/modules/gallery/tests/Html_Helper_Test.php
+++ b/modules/gallery/tests/Html_Helper_Test.php
@@ -27,8 +27,9 @@ class Html_Helper_Test extends Unit_Test_Case {
public function purify_test() {
$safe_string = html::purify("hello <p >world</p>");
- $expected =
- module::is_active("htmlpurifier") ? "hello <p>world</p>" : "hello &lt;p &gt;world&lt;/p&gt;";
+ $expected = method_exists("purifier", "purify")
+ ? "hello <p>world</p>"
+ : "hello &lt;p &gt;world&lt;/p&gt;";
$this->assert_equal($expected, $safe_string->unescaped());
$this->assert_true($safe_string instanceof SafeString);
}