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:
Tim Almdal
2009-09-03 01:05:03 -07:00
parent 3dc7e2e78c
commit 33bcf11e27
2 changed files with 6 additions and 3 deletions

View File

@@ -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 &lt;p &gt;world&lt;/p&gt;";
$this->assert_equal($expected, $safe_string->unescaped());
}
public function of_fluid_api_test() {