mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-29 10:26:46 -04:00
Fix test for new purifier API.
This commit is contained in:
@@ -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 <p >world</p>";
|
||||
$expected = method_exists("purifier", "purify")
|
||||
? "hello <p>world</p>"
|
||||
: "hello <p >world</p>";
|
||||
$this->assert_equal($expected, $safe_string->unescaped());
|
||||
$this->assert_true($safe_string instanceof SafeString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user