Skip to content

Commit d49e521

Browse files
committed
fix(Session): par defaut, utiliser du gestionnaire Array lors des tests
1 parent 1537fb9 commit d49e521

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Constants/schemas/session.config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12+
use BlitzPHP\Session\Handlers\ArrayHandler;
1213
use BlitzPHP\Session\Handlers\File;
1314
use Nette\Schema\Expect;
1415

1516
return Expect::structure([
16-
'handler' => Expect::string()->default(File::class),
17+
'handler' => Expect::string()->default(environment('test') ? ArrayHandler::class : File::class),
1718
'cookie_name' => Expect::string()->default('blitz_session'),
1819
'expiration' => Expect::int()->default(7200),
1920
'savePath' => Expect::string()->default(FRAMEWORK_STORAGE_PATH . 'session'),

0 commit comments

Comments
 (0)