First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
17
tests/_support/Security/MockSecurity.php
Normal file
17
tests/_support/Security/MockSecurity.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php namespace Tests\Support\Security;
|
||||
|
||||
use CodeIgniter\Security\Security;
|
||||
use CodeIgniter\HTTP\RequestInterface;
|
||||
|
||||
class MockSecurity extends Security
|
||||
{
|
||||
public function CSRFSetCookie(RequestInterface $request)
|
||||
{
|
||||
$_COOKIE['csrf_cookie_name'] = $this->CSRFHash;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user