Fix #18247: Added support for the 'session.use_strict_mode' ini directive in yii\web\Session

This commit is contained in:
rhertogh
2020-10-31 09:58:34 +01:00
committed by GitHub
parent 9bd0a7c530
commit ce088e05df
11 changed files with 295 additions and 5 deletions

View File

@ -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());
}
}