We discovered in T199504 that unit tests are lacking for a use case involving non-wikitext content. We expect that the tests should pass normally, but will fail once we locally reapply the "strict equality" patch from https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/443964/ , at least that's one way to identify the code path that was affected.
Description
Description
Related Objects
Related Objects
- Mentioned Here
- T199504: Editing of content model other than wikitext fails
Event Timeline
Comment Actions
The PHP unit tests don't reach edit() or showEditForm(), where the problematic code lies. Some light selenium tests are being run.
We could add to the selenium tests to edit non-wikitext content, or could create new PHP unit tests that mock the request and OutputPage.