Skip to content

Commit

Permalink
Adding integration test of CacheHelper with newly modified Inflector:…
Browse files Browse the repository at this point in the history
…:slug, on caching actions with non-latin characters in route.
  • Loading branch information
jperras committed Jul 25, 2009
1 parent 54d1577 commit 6fd0bfc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cake/tests/cases/libs/view/helpers/cache.test.php
Expand Up @@ -140,6 +140,26 @@ function testLayoutCacheParsingNoTagsInView() {
@unlink($filename);
}
/**
* test cache parsing with non-latin characters in current route
*
* @access public
* @return void
*/
function testCacheNonLatinCharactersInRoute() {
$this->Controller->cache_parsing();
$this->Controller->cacheAction = 21600;
$this->Controller->here = '/posts/view/風街ろまん';
$this->Controller->action = 'view';

$View = new View($this->Controller);
$result = $View->render('index');

$filename = CACHE . 'views' . DS . 'posts_view_風街ろまん.php';
$this->assertTrue(file_exists($filename));

@unlink($filename);
}
/**
* Test cache parsing with cake:nocache tags in view file.
*
* @access public
Expand Down

0 comments on commit 6fd0bfc

Please sign in to comment.