Commit graph

3 commits

Author SHA1 Message Date
Func
4d1da6f7f8 phpunit: Update @covers annotations for namespaced classes
We renamed many classes to be namespaced, but the `@covers` and
`@coversDefaultClass` annotations weren't updated properly.

PHPUnit didn't support short cover annotations with `use` statements,
these didn't trigger any errors yet, because they are class alias.

This patch is populated by a modified version of PhpunitAnnotationsSniff.

Change-Id: I6c602290a30099239b17d2dc0d67b1488b4eaeeb
2023-05-27 17:43:12 +08:00
James D. Forrester
833ba2a3fd Namespace SpecialC* under \MediaWiki\Specials
Change-Id: Idbdacc20d45437d141c1a0d5f2eee98ae9345875
2023-05-03 06:15:57 +00:00
Thalia
8f274480b7 auth: Introduce quick permissions checks for AuthManager
Deprecate AuthManager::checkAccountCreatePermissions in favour of
::authorizeCreateAccount, for full permissions checks and
::probablyCanCreateAccount, for quick permissions checks.

Update SpecialCreateAccount to use the appropriate checks, and
add SpecialCreateAccountTest.

Bug: T283265
Change-Id: I385f2b56ef61f64a4c61e9c97683bef564892dce
2022-06-01 08:06:21 +01:00