mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
More complex test case for GET params
This commit is contained in:
parent
54e172b129
commit
76b7c8c594
1 changed files with 5 additions and 0 deletions
|
@ -156,6 +156,11 @@ class TextHelperTest extends CakeTestCase {
|
|||
$expected = 'This is a test text with URL [<a href="http://www.cakephp.org/page/4">http://www.cakephp.org/page/4</a>] 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 [<a href="http://www.example.com?aParam[]=value1&aParam[]=value2&aParam[]=value3">http://www.example.com?aParam[]=value1&aParam[]=value2&aParam[]=value3</a>] in square brackets';
|
||||
$result = $this->Text->autoLink($text);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue