diff options
Diffstat (limited to 'tests/units/Helper')
-rw-r--r-- | tests/units/Helper/TextHelperTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/units/Helper/TextHelperTest.php b/tests/units/Helper/TextHelperTest.php index 35ed5a1e..abe921fe 100644 --- a/tests/units/Helper/TextHelperTest.php +++ b/tests/units/Helper/TextHelperTest.php @@ -9,6 +9,13 @@ use Kanboard\Model\UserModel; class TextHelperTest extends Base { + public function testImplode() + { + $textHelper = new TextHelper($this->container); + $html = '<img src=x onerror=alert(0)>'; + $this->assertEquals($html, $textHelper->implode(', ', array('<img src=x onerror=alert(0)>'))); + } + public function testMarkdownTaskLink() { $textHelper = new TextHelper($this->container); |