mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-06-08 07:50:10 +02:00
`Csp::createnonces()` writes to a window aware session and hence a fake base session is created in `BaseTestCase::setUp()` method
30 lines
344 B
PHP
30 lines
344 B
PHP
<?php
|
|
|
|
namespace Tests\Icinga\Lib;
|
|
|
|
use Icinga\Web\Session\Session;
|
|
|
|
class FakeSession extends Session
|
|
{
|
|
public function read()
|
|
{
|
|
}
|
|
|
|
public function exists()
|
|
{
|
|
}
|
|
|
|
public function purge()
|
|
{
|
|
}
|
|
|
|
public function refreshId()
|
|
{
|
|
}
|
|
|
|
public function getId()
|
|
{
|
|
return '1234567890';
|
|
}
|
|
}
|