Skip to content
Permalink
Browse files

Use cache folder for tests.

  • Loading branch information...
ADmad committed Sep 28, 2018
1 parent af5bb36 commit a40fbd794de60d10dd5cea4ba714f9f981b50b93
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/Routing/Middleware/RoutingMiddlewareTest.php
@@ -467,7 +467,7 @@ public function testCacheRoutes()
$cacheConfigName = '_cake_router_';
Cache::setConfig($cacheConfigName, [
'engine' => 'File',
'path' => TMP,
'path' => CACHE,
]);
Router::$initialized = false;
$request = ServerRequestFactory::fromGlobals(['REQUEST_URI' => '/articles']);
@@ -497,7 +497,7 @@ public function testCacheNotUsedIfCacheDisabled()
Cache::disable();
Cache::setConfig($cacheConfigName, [
'engine' => 'File',
'path' => TMP,
'path' => CACHE,
]);
Router::$initialized = false;
$request = ServerRequestFactory::fromGlobals(['REQUEST_URI' => '/articles']);
@@ -529,7 +529,7 @@ public function testCacheConfigNotFound()
Cache::setConfig('_cake_router_', [
'engine' => 'File',
'path' => TMP,
'path' => CACHE,
]);
Router::$initialized = false;
$request = ServerRequestFactory::fromGlobals(['REQUEST_URI' => '/articles']);

0 comments on commit a40fbd7

Please sign in to comment.
You can’t perform that action at this time.