diff --git a/src/Constants/schemas/session.config.php b/src/Constants/schemas/session.config.php index cc53384b..0ee53c3c 100644 --- a/src/Constants/schemas/session.config.php +++ b/src/Constants/schemas/session.config.php @@ -9,11 +9,12 @@ * the LICENSE file that was distributed with this source code. */ +use BlitzPHP\Session\Handlers\ArrayHandler; use BlitzPHP\Session\Handlers\File; use Nette\Schema\Expect; return Expect::structure([ - 'handler' => Expect::string()->default(File::class), + 'handler' => Expect::string()->default(environment('test') ? ArrayHandler::class : File::class), 'cookie_name' => Expect::string()->default('blitz_session'), 'expiration' => Expect::int()->default(7200), 'savePath' => Expect::string()->default(FRAMEWORK_STORAGE_PATH . 'session'),