File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 3232 "cakephp/debug_kit" : " ^5.0" ,
3333 "michelf/php-markdown" : " ^1.9" ,
3434 "mikey179/vfsstream" : " ^1.6.10" ,
35- "phpunit/phpunit" : " ^10 .5.5 || ^11 .1.3"
35+ "phpunit/phpunit" : " ^11 .5.3 | ^12 .1.3"
3636 },
3737 "conflict" : {
3838 "wyrihaximus/twig-view" : " *"
Original file line number Diff line number Diff line change 1818
1919namespace Cake \TwigView \Test \TestCase \Twig ;
2020
21+ use Cake \Routing \Router ;
2122use Cake \TestSuite \TestCase ;
2223use Cake \TwigView \Twig \FileLoader ;
2324use Twig \Error \LoaderError ;
@@ -36,6 +37,7 @@ public function setUp(): void
3637 {
3738 parent ::setUp ();
3839
40+ Router::reload ();
3941 $ this ->loadPlugins (['TestTwigView ' ]);
4042
4143 $ this ->loader = new FileLoader (['.twig ' ]);
@@ -81,7 +83,7 @@ public function testGetCacheKeyPluginNonExistingFile()
8183
8284 public function testIsFresh ()
8385 {
84- file_put_contents (TMP . 'TwigViewIsFreshTest ' , 'TwigViewIsFreshTest ' );
86+ file_put_contents (TMP . 'TwigViewIsFreshTest ' , 'is fresh test ' );
8587 $ time = filemtime (TMP . 'TwigViewIsFreshTest ' );
8688
8789 $ this ->assertTrue ($ this ->loader ->isFresh (TMP . 'TwigViewIsFreshTest ' , $ time + 5 ));
Original file line number Diff line number Diff line change 5858 'default ' => [
5959 'engine ' => 'File ' ,
6060 ],
61+ '_cake_core_ ' => [
62+ 'className ' => 'File ' ,
63+ 'prefix ' => '_cake_translations_ ' ,
64+ 'path ' => CACHE . 'persistent/ ' ,
65+ 'serialize ' => true ,
66+ 'duration ' => '+10 seconds ' ,
67+ ],
6168 '_cake_translations_ ' => [
6269 'className ' => 'File ' ,
6370 'prefix ' => '_cake_translations_ ' ,
You can’t perform that action at this time.
0 commit comments