Skip to content
Browse files

Add an extra Assertion to testStripLinks() method for checking "javas…

  • Loading branch information...
sohelrana820 committed Mar 16, 2018
1 parent 8a659e5 commit 79ef34430dc49133b9e6734bd52e91c075a6eddf
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/TestCase/Utility/TextTest.php
@@ -845,6 +845,11 @@ public function testStripLinks()
$result = $this->Text->stripLinks($text);
$this->assertEquals($expected, $result);
$text = 'This <strong><a href="#">is</a></strong> a <a href="javascript:void(0)">test</a> text';
$expected = 'This <strong>is</strong> a test text';
$result = $this->Text->stripLinks($text);
$this->assertEquals($expected, $result);
$text = '<a<a h> href=\'bla\'>test</a</a>>';
$this->assertEquals('test', $this->Text->stripLinks($text));

0 comments on commit 79ef344

Please sign in to comment.
You can’t perform that action at this time.