From 76b7c8c594b6f67b15a673fe029d0e9035e2e1bd Mon Sep 17 00:00:00 2001 From: Rob McVey Date: Fri, 2 Jan 2015 15:31:27 +0000 Subject: [PATCH] More complex test case for GET params --- lib/Cake/Test/Case/View/Helper/TextHelperTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php index 86d669d9942..63cd79494b8 100644 --- a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php @@ -156,6 +156,11 @@ public function testAutoLink() { $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); + + $text = 'This is a test text with URL [http://www.example.com?aParam[]=value1&aParam[]=value2&aParam[]=value3] in square brackets'; + $expected = 'This is a test text with URL [http://www.example.com?aParam[]=value1&aParam[]=value2&aParam[]=value3] in square brackets'; + $result = $this->Text->autoLink($text); + $this->assertEquals($expected, $result); } /**