Skip to content

Commit

Permalink
✅ Enable Deprecation Helper in Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Dec 18, 2024
1 parent 1bdfe4b commit 12b1351
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<env name="APP_DEBUG" value="1"/>
<env name="APP_SECRET" value="s$cretf0rt3st"/>
<env name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>
<!-- define your env variables for the test env here -->
</php>
<testsuites>
Expand Down
9 changes: 0 additions & 9 deletions tests/EntityListener/UserChangedListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12b1351

Please sign in to comment.