Merge pull request #237 from creative-commoners/pulls/2.1/unbreak-cleaning

FIX Skip test if optional dependency not present
This commit is contained in:
Damian Mooyman 2018-03-12 13:55:20 +13:00 committed by GitHub
commit e557e51074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -974,6 +974,11 @@ class CommentsTest extends FunctionalTest
public function testPurifyHtml()
{
if (!class_exists('HTMLPurifier_Config')) {
$this->markTestSkipped('HTMLPurifier class not found');
return;
}
$comment = $this->objFromFixture('Comment', 'firstComA');
$dirtyHTML = '<p><script>alert("w00t")</script>my comment</p>';