Open
Description
Description
When using IntegrationTestTrait in controller tests, I usually use
$this->disableErrorHandlerMiddleware();
to make the actual exceptions visible in default case.
This seems to through warnings, hundreds of them at the end of the test suite run:
113) App\Test\TestCase\Controller\EventsControllerTest::testEdit
* Test code or tested code did not remove its own error handlers
* Test code or tested code did not remove its own exception handlers
/data/work/devilbox/data/www/app/tests/TestCase/Controller/EventsControllerTest.php:269
I wonder if we need to reset sth inside the tearDown to revert this?
CakePHP Version
5.2
PHP Version
8.4