SpecialMWOAuthManageMyGrants handles the flow for listing the consumers to which a user has granted access. The user can also manage access to this consumer using this special page or revoke access entirely.
Integration tests would be written to cover the /list, /update, /revoke, and /manage/<consumer-id> endpoints and their interaction with the DB. Unit tests would be written for self-contained code paths within and related classes used by this special page. It's probably possible to use SpecialPageTestBase, since this will involve testing a special page and ApiTestCase for action API-related functionality.
Impact
- Increase coverage of the respective special page: https://doc.wikimedia.org/cover-extensions/OAuth/src/Frontend/SpecialPages/SpecialMWOAuthManageMyGrants.php.html
- Increase coverage of control classes (T416761)
- https://doc.wikimedia.org/cover-extensions/OAuth/src/Control/ConsumerSubmitControl.php.html
- Increase in code coverage: https://doc.wikimedia.org/cover-extensions/OAuth/src/Control/ConsumerAcceptanceAccessControl.php.html
- Increase in code coverage: https://doc.wikimedia.org/cover-extensions/OAuth/src/Control/ConsumerAccessControl.php.html