SpecialMWOAuth/authorize is the special page endpoint that handles OAuth1 consumer authorization, which is part of a 3-legged security handshake. This flow will likely involve multiple requests to accomplish the handshake.
Integration tests should be written to cover the logic of the OAuth1 authorization flow and the DB interaction. Also, related unit tests should be written for self-contained logic where necessary. 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/SpecialMWOAuth.php.html
- Increase coverage of submit control classes (T416761)
- Increase in code coverage: https://doc.wikimedia.org/cover-extensions/OAuth/src/Control/ConsumerAcceptanceAccessControl.php.html