aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/auth/PasswordDomainAuthenticationRequestTest.php
Commit message (Collapse)AuthorAgeFilesLines
* tests: Use namespaced classes (1)Umherirrender2024-06-141-1/+1
| | | | | | | Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: Iae45fa269363be8ee05c598ea6926514ce817762
* tests: More use statements in auth testsReedy2024-02-161-2/+3
| | | | Change-Id: Ic57b19a779065a18112334d79ede395ced1a202b
* tests: Add Tests to PHP namespacingReedy2024-02-161-1/+4
| | | | Change-Id: I849268172751d50292e93aa75abe8094873f56bc
* Do not use UTSysop directly in auth testsDaimona Eaytoy2023-08-161-2/+3
| | | | | | | | | | | | | | | | | | | | These tests are all making two assumptions: - That the sysop test account exists - That its name is UTSysop Both assumptions happen to be true right now, but the first one will no longer be after change I30861742. The second one will probably remain true for a while, but still, tests shouldn't rely on this implementation detail when possible. If a test needs an exiting test user, it should call getTestUser / getTestSysop. Use mocks or different usernames where the user actually doesn't matter, e.g. in non-Database tests where UTSysop already doesn't exist. Bug: T342428 Change-Id: Ie77e72f5a5ee6a2ef4ec9dceaa9044bb690f68b2
* tests: Allow overridable data providers to be staticmainframe982023-05-161-1/+1
| | | | | | | | | | | | | | | | This uses some reflection to identify if the data provider is static or not. If it isn't, a deprecation notice is emitted. This doesn't fail the tests, but is still printed in the output. To facilitate this, the relevant abstract method has been uncommented, as PHP does not like it when function signatures do not match up. This approach means that tests in extensions or skins do not immediately break when making data providers static. Instead, they can do so at their own pace. Bug: T332865 Change-Id: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
* Autofix 94 PHPUnit 8 compat issuesDaimona Eaytoy2019-12-131-1/+1
| | | | | | | | Done automatically using the master version of MW codesniffer and running composer fix. Bug: T192167 Change-Id: If6b40f515fde32ab5eff074a90e821c30c791827
* Fix undefined NS with @covers tags in /includes/auth/Alangi Derick2018-11-011-1/+1
| | | | | | Should MW Codesniffer also handle these as well? Change-Id: Ieb493bddd5f3674fb889b4a780d51b50d89c4f65
* Use ::class to resolve class names in testsUmherirrender2018-01-261-2/+2
| | | | | | | This helps to find renamed or misspelled classes earlier. Phan will check the class names Change-Id: Ie541a7baae10ab6f5c13f95ac2ff6598b8f8950c
* Add AuthManagerBrad Jorsch2016-05-161-0/+159
This implements the AuthManager class and its needed interfaces and subclasses, and integrates them into the backend portion of MediaWiki. Integration with frontend portions of MediaWiki (e.g. ApiLogin, Special:Login) is left for a followup. Bug: T91699 Bug: T71589 Bug: T111299 Co-Authored-By: Gergő Tisza <gtisza@wikimedia.org> Change-Id: If89d24838e326fe25fe867d02181eebcfbb0e196