[09:59:41] how do I bypass mediawiki trying to re-authenticate the user (due to SpecialPage::getLoginSecurityLevel() being set) in a phpunit test using SpecialPageTestBase? [13:32:41] I think the least bad way would be to use the SecuritySensitiveOperationStatus hook to force a SEC_OK status for security checks. [13:43:47] hm. if I pass `$this->getTestSysop()->getUser()` as the performer to executeSpecialPage(), that hits the 'Not logged in!' code path in AuthManager::securitySensitiveOperationStatus() where that hook is not called [13:54:52] You could do something like `RequestContext::getMain()->getRequest()->getSession->setUser( $testUser )` but that might result in cookies being output and whatnot. [13:55:31] or mock `AuthManager::securitySensitiveOperationStatus()` [13:57:13] that works, thanks! [13:57:17] maybe the checkLoginSecurityLevel() call should be proxied through Authority? [13:57:36] but that means an interface change + it will then need an AuthManager instance [17:04:29] https://wiki.php.net/rfc/make_opcache_required