mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
fix test Parse Trailing UTF8
This commit is contained in:
parent
5e9af65486
commit
683607de5e
1 changed files with 3 additions and 3 deletions
|
@ -865,10 +865,10 @@ class CakeRouteTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function testParseTrailingUTF8() {
|
public function testParseTrailingUTF8() {
|
||||||
$route = new CakeRoute('/:controller/:action/**');
|
$route = new CakeRoute( '/category/**', array('controller' => 'categories','action' => 'index'));
|
||||||
$result = $route->parse('/posts/index/موبایل');
|
$result = $route->parse('/category/%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84');
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'controller' => 'posts',
|
'controller' => 'categories',
|
||||||
'action' => 'index',
|
'action' => 'index',
|
||||||
'pass' => array('موبایل'),
|
'pass' => array('موبایل'),
|
||||||
'named' => array()
|
'named' => array()
|
||||||
|
|
Loading…
Add table
Reference in a new issue