Addresses the ability to show 404 Page Not Found pages from events, that wasn't covered in the D462.
Details
Details
Preparations
In IDE:
- open the /core/units/users/users_event_handler.php file for editing
- add protected function OnTestPageNotFound(kEvent $event) { $this->Application->UrlManager->show404(); } code after the \UsersEventHandler::mapPermissions method
- add the 'OnTestPageNotFound' => array('self' => true), element to the $permissions array of the \UsersEventHandler::mapPermissions method
- save changes
Test Plan
- repeat the test plan from the D462
- open the /platform/page-not-found.html?events[u]=OnTestPageNotFound URL on the Front-End
- confirm, that you're stayed on the page URL and seeing Page Not Found page
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.2.x
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 11090 Build 3790: arc lint + arc unit