From 683607de5e3b50cfdeeea0e19013b8ac0c10cc99 Mon Sep 17 00:00:00 2001 From: Saleh Souzanchi Date: Wed, 7 Mar 2012 21:51:09 +0330 Subject: [PATCH] fix test Parse Trailing UTF8 --- lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php b/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php index 2f68d90fb..55f836339 100644 --- a/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php +++ b/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php @@ -865,10 +865,10 @@ class CakeRouteTest extends CakeTestCase { */ public function testParseTrailingUTF8() { - $route = new CakeRoute('/:controller/:action/**'); - $result = $route->parse('/posts/index/موبایل'); + $route = new CakeRoute( '/category/**', array('controller' => 'categories','action' => 'index')); + $result = $route->parse('/category/%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84'); $expected = array( - 'controller' => 'posts', + 'controller' => 'categories', 'action' => 'index', 'pass' => array('موبایل'), 'named' => array()