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:
raviks789 2023-08-25 11:09:15 +02:00
parent 33b6c01fe2
commit d2a40e088d

View File

@ -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();