Preparations
- in the IDE:
- open the core/units/admin/admin_events_handler.php file for editing
- in the \AdminEventsHandler::OnDeploy method add the throw new LogicException('Testing.'); line before the current code
- save changes
Test Plan
- in CLI:
- execute the ./in-portal event:run adm:OnDeploy -v command
- confirm that:
- exception class/message/backtrace is displayed
- login to the Admin Console
- go to the Logs & Reports → System Log section
- confirm that the above-thrown exception was properly logged