Page MenuHomePhabricator

Write unit test for non-wikitext content
Open, Needs TriagePublic


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 , at least that's one way to identify the code path that was affected.

Event Timeline

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.