Page MenuHomePhabricator

ContactPage extension has no PHPUnit tests
Closed, ResolvedPublic

Description

The ContactPage extension has no tests.

Event Timeline

phan is just static analysis (which is good!), but doesn't count as test coverage, which are usually PHPUnit tests or parser tests.

Change 869338 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/ContactPage@master] Start on selenium tests for ContactPage

https://gerrit.wikimedia.org/r/869338

Change 869765 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/ContactPage@master] Start on phpunit tests for Special:Contact

https://gerrit.wikimedia.org/r/869765

Change 869338 merged by jenkins-bot:

[mediawiki/extensions/ContactPage@master] Start on selenium tests for ContactPage

https://gerrit.wikimedia.org/r/869338

Change 869765 abandoned by Dreamy Jazz:

[mediawiki/extensions/ContactPage@master] Start on phpunit tests for Special:Contact

Reason:

I couldn't get the code to test using the merge strategy defined in extension.json. The test was there to see how wfArrayPlus2d works as a merge strategy by directly using it to set the global value. However, I now think that it is probably not worth doing that.

https://gerrit.wikimedia.org/r/869765

thiemowmde renamed this task from ContactPage extension has no tests to ContactPage extension has no PHPUnit tests.Jun 15 2023, 9:36 AM