diff --git a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php index c4e36aaa7..0760c9125 100644 --- a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php @@ -146,6 +146,16 @@ class TextHelperTest extends CakeTestCase { $expected = 'This is a test text with URL http://www.cakephp.org(and some more text)'; $result = $this->Text->autoLink($text); $this->assertEquals($expected, $result); + + $text = 'This is a test text with URL (http://www.cakephp.org/page/4) in brackets'; + $expected = 'This is a test text with URL (http://www.cakephp.org/page/4] in square brackets'; + $result = $this->Text->autoLink($text); + $this->assertEquals($expected, $result); } /**