mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Update unit test for Security::checkCSRF()
This commit is contained in:
parent
4f52122a3c
commit
bc6907dccf
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ class SecurityTest extends \Codeception\TestCase\Test
|
||||||
{
|
{
|
||||||
$_SERVER['REQUEST_METHOD'] = 'GET';
|
$_SERVER['REQUEST_METHOD'] = 'GET';
|
||||||
$_SERVER['HTTP_REFERER'] = '';
|
$_SERVER['HTTP_REFERER'] = '';
|
||||||
$this->assertFalse(Rhymix\Framework\Security::checkCSRF());
|
$this->assertTrue(Rhymix\Framework\Security::checkCSRF());
|
||||||
|
|
||||||
$_SERVER['REQUEST_METHOD'] = 'POST';
|
$_SERVER['REQUEST_METHOD'] = 'POST';
|
||||||
$this->assertTrue(Rhymix\Framework\Security::checkCSRF());
|
$this->assertTrue(Rhymix\Framework\Security::checkCSRF());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue