`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()
|
||||
{
|
||||
Mockery::mock('alias:Icinga\Web\Session')->shouldReceive('getSession->getId')->andReturn('1234567890');
|
||||
|
||||
$form = new Form();
|
||||
$form->create();
|
||||
|
||||
|
|
Loading…
Reference in New Issue