/** * test case startup * * @return void */ public static function setupBeforeClass() { Cache::enable(); Cache::config('session_test', ['engine' => 'File', 'path' => TMP . 'sessions', 'prefix' => 'session_test']); static::$_sessionBackup = Configure::read('Session'); Configure::write('Session.handler.config', 'session_test'); }
/** * test case startup * * @return void */ public static function setupBeforeClass() { static::$_sessionBackup = Configure::read('Session'); Configure::write('Session.handler', array('model' => 'SessionTestModel')); Configure::write('Session.timeout', 100); }
/** * test case startup * * @return void */ public static function setupBeforeClass() { static::$_sessionBackup = Configure::read('Session'); Configure::write('Session', array('defaults' => 'php', 'timeout' => 100, 'cookie' => 'test')); }
/** * test case startup * * @return void */ public static function setupBeforeClass() { Cache::config('session_test', array('engine' => 'File', 'prefix' => 'session_test_')); static::$_sessionBackup = Configure::read('Session'); Configure::write('Session.handler.config', 'session_test'); }