Skip to content

Commit

Permalink
New test cases to cover URLs containing and ending with punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
sevvlor committed Jun 2, 2017
1 parent 9e8a9c1 commit 2cc3c33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestCase/View/Helper/TextHelperTest.php
Expand Up @@ -376,6 +376,14 @@ public static function autoLinkProvider()
[
'https://fakedomain.ext/path/#!topic/test;other;tag',
'<a href="https://fakedomain.ext/path/#!topic/test;other;tag">https://fakedomain.ext/path/#!topic/test;other;tag</a>'
],
[
'This is text,https://fakedomain.ext/path/#!topic/test,tag, with a comma',
'This is text,<a href="https://fakedomain.ext/path/#!topic/test,tag">https://fakedomain.ext/path/#!topic/test,tag</a>, with a comma'
],
[
'This is text,https://fakedomain.ext/path/#!topic/test,tag, with a comma',
'This is text <a href="https://fakedomain.ext/path/#!topic/path">https://fakedomain.ext/path/#!topic/path</a>!'
]
];
}
Expand Down

0 comments on commit 2cc3c33

Please sign in to comment.