mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
update tests
This commit is contained in:
@ -319,6 +319,16 @@ class RequestTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function testNoCsrfTokenCsrfHeaderValidation()
|
||||
{
|
||||
$this->mockWebApplication();
|
||||
|
||||
$request = new Request();
|
||||
$request->validateCsrfHeaderOnly = true;
|
||||
|
||||
$this->assertEquals($request->getCsrfToken(), null);
|
||||
}
|
||||
|
||||
public function testResolve()
|
||||
{
|
||||
$this->mockWebApplication([
|
||||
|
Reference in New Issue
Block a user