From d2a40e088dd6da4265a51efcf2cbf5f99aab8a82 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Fri, 25 Aug 2023 11:09:15 +0200 Subject: [PATCH] `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`. --- test/php/library/Icinga/Web/FormTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/php/library/Icinga/Web/FormTest.php b/test/php/library/Icinga/Web/FormTest.php index b43efe452..425137342 100644 --- a/test/php/library/Icinga/Web/FormTest.php +++ b/test/php/library/Icinga/Web/FormTest.php @@ -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();