mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-18 20:10:04 +01:00
FormTest: Remove mocke Icinga\Web\Session in test testWhetherACsrfCounterMeasureIsBeingAdded()
Since a fake session is already being instantiated in `BaseTestCase` there is no need to mock the class `Icinga\Web\Session`.
This commit is contained in:
parent
33b6c01fe2
commit
d2a40e088d
@ -120,8 +120,6 @@ class FormTest extends BaseTestCase
|
|||||||
*/
|
*/
|
||||||
public function testWhetherACsrfCounterMeasureIsBeingAdded()
|
public function testWhetherACsrfCounterMeasureIsBeingAdded()
|
||||||
{
|
{
|
||||||
Mockery::mock('alias:Icinga\Web\Session')->shouldReceive('getSession->getId')->andReturn('1234567890');
|
|
||||||
|
|
||||||
$form = new Form();
|
$form = new Form();
|
||||||
$form->create();
|
$form->create();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user