From 12b13513b2735b9490fd697a01e955492ef0cf02 Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 18 Dec 2024 18:53:11 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Enable=20Deprecation=20Helper=20in?= =?UTF-8?q?=20Tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpunit.xml | 2 +- tests/EntityListener/UserChangedListenerTest.php | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 39d1794a..875cdd50 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -21,7 +21,7 @@ - + diff --git a/tests/EntityListener/UserChangedListenerTest.php b/tests/EntityListener/UserChangedListenerTest.php index 69ead638..89dc9384 100644 --- a/tests/EntityListener/UserChangedListenerTest.php +++ b/tests/EntityListener/UserChangedListenerTest.php @@ -30,15 +30,6 @@ public function setUp(): void ->willReturn($this->voucherRepository); $this->suspiciousChildrenHandler = $this->createMock(SuspiciousChildrenHandler::class); $this->listener = new UserChangedListener($manager, $this->suspiciousChildrenHandler); - - $this->session = $this->createMock(Session::class); - $this->request = $this->createMock(Request::class); - $this->request->method('getSession') - ->willReturn($this->session); - $this->request->query = new InputBag(); - $this->event = $this->createMock(RequestEvent::class); - $this->event->method('getRequest') - ->willReturn($this->request); } public function testPreUpdateNoRoleChanges(): void