mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 01:09:19 -04:00
Change the Html_Helper and SafeString tests to change the expeced results based on whether HtmlPurifier module is installed or not
This commit is contained in:
@@ -91,7 +91,9 @@ class SafeString_Test extends Unit_Test_Case {
|
||||
|
||||
public function purify_test() {
|
||||
$safe_string = SafeString::purify("hello <p >world</p>");
|
||||
$this->assert_equal("hello <p>world</p>", $safe_string);
|
||||
$expected =
|
||||
module::is_active("htmlpurifier") ? "hello <p>world</p>" : "hello <p >world</p>";
|
||||
$this->assert_equal($expected, $safe_string->unescaped());
|
||||
}
|
||||
|
||||
public function of_fluid_api_test() {
|
||||
|
||||
Reference in New Issue
Block a user