Page MenuHomePhabricator

Create PHPUnit test helper for MediaWiki REST API handlers
Open, Needs TriagePublic

Description

Writing a PHPUnit test (whether unit or integration) for a REST handler is a bit of a pain currently. You need to define and inject a mock response factory, a mock body validator, there is no easy way to get a handler with real dependencies for an integration test... if we want to encourage developers to write tests, the boilerplate part should take minimal effort.