[TASK] Avoid MockEventDispatcher
The MockEventDispatcher unit test fixture became useless with introduction of NoopEventDispatcher. The patch removes last remains: Most simply inject NoopEventDispatcher, some others create a mock of EventDispatcherInterface and use it for event manipulation when testing $subjects that act on event results. Resolves: #104273 Related: #97449 Related: #98016 Releases: main Change-Id: I0babc60cdd3c87bf9f25a931edfd3f47f642bfae Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85032 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseUserPermissionCheck.php 6 additions, 3 deletions...ses/Form/FormDataProvider/DatabaseUserPermissionCheck.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php 24 additions, 78 deletions...Form/FormDataProvider/DatabaseUserPermissionCheckTest.php
- typo3/sysext/core/Tests/Functional/Database/Schema/SchemaMigratorTest.php 2 additions, 2 deletions...e/Tests/Functional/Database/Schema/SchemaMigratorTest.php
- typo3/sysext/core/Tests/Unit/Fixtures/EventDispatcher/MockEventDispatcher.php 0 additions, 47 deletions...sts/Unit/Fixtures/EventDispatcher/MockEventDispatcher.php
Please register or sign in to comment