mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Adding integration test of CacheHelper with newly modified Inflector::slug, on caching actions with non-latin characters in route.
This commit is contained in:
parent
54d1577276
commit
6fd0bfc96f
1 changed files with 20 additions and 0 deletions
|
@ -140,6 +140,26 @@ class CacheHelperTest extends CakeTestCase {
|
||||||
@unlink($filename);
|
@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.
|
* Test cache parsing with cake:nocache tags in view file.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
|
|
Loading…
Add table
Reference in a new issue