mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix #18247: Added support for the 'session.use_strict_mode' ini directive in yii\web\Session
This commit is contained in:
@ -16,6 +16,8 @@ use yii\web\CacheSession;
|
||||
*/
|
||||
class CacheSessionTest extends \yiiunit\TestCase
|
||||
{
|
||||
use SessionTestTrait;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
@ -51,4 +53,14 @@ class CacheSessionTest extends \yiiunit\TestCase
|
||||
|
||||
$this->assertTrue($session->destroySession($session->getId()));
|
||||
}
|
||||
|
||||
public function testInitUseStrictMode()
|
||||
{
|
||||
$this->initStrictModeTest(CacheSession::className());
|
||||
}
|
||||
|
||||
public function testUseStrictMode()
|
||||
{
|
||||
$this->useStrictModeTest(CacheSession::className());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user