Issue Task Closed

#107978Add rudimentary test-case to load all backend modules and important features as "normal" backend user

Ayke Halder 11/04/25, 14:17 updated 11/09/26, 18:14

Description

For each backend module and important feature there should be a rudimentary test-case to check if it is just loading as “normal” backend user.

Most development work happens in admin context. Running something as non-admin backend user might become silently broken.

E.g. code like this is broken for non-admin backend users only.

                $this->getBackendUser()->isAdmin()
                || (
                    (
                        !($this->record[…] ?? false) /* <-- "Cannot use object of type TYPO3\CMS\Core\Domain\Record as array" */
                        …

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-11-05T19:33:11+00:00" > 11/05/25, 19:33 </span>

    I’ve added https://docs.typo3.org/permalink/t3contribute:common-review-checks-acceptance to the contribution guide to encourage having this for new patches.

    I guess that adding this for existing modules is a task we’ll unlikely find someone to actually implement it – or would you want to provide such a test case?

  2. Garvin Hicking commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-11-09T18:14:53+00:00" > 11/09/26, 18:14 </span>

    I think having such “meta” tasks will never be closed. We’d need more specific issues, at best agentic rules that cover this via dev companion. Closing.