wiki.techinc.nl/tests/phpunit/includes
Daimona Eaytoy c98aeff078 Allow DefaultOptionsLookup to be used with registered users in tests
Some tests use fake registered users which end up being passed to
DefaultOptionsLookup when storage is disabled. This should not be
considered a bug, and using the default preferences in this scenario
makes sense.

Add a switch to DefaultOptionsLookup to disable the precondition check
in that scenario.

Change-Id: I5987c4f1c3c502b23113d6688bbff7f1abe65879
2023-08-07 01:18:50 +02:00
..
actions Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
api Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
auth Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
block Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
cache language: Move tests from /cache to /language 2023-07-28 15:23:06 +02:00
changes EnhancedChangesList: Use HTML/CSS for collapsing 2023-07-13 23:12:45 +00:00
changetags Simplify WHERE conditions with field IS NULL 2023-07-24 19:22:36 +02:00
collation tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
config config: Widen @covers annotations in unit tests 2023-07-24 05:33:30 +01:00
content Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
db rdbms: Move two static methods of LBFactory to ChronologyProtector 2023-08-01 10:40:52 +00:00
debug tests: Change expectDeprecation to expectDeprecationAndContinue 2023-07-18 16:35:43 +00:00
deferred Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
diff Merge "Add support for wikidiff2_multi_format_diff()" 2023-07-31 11:54:12 +00:00
editpage editpage: Fix use of includeonly for preload of page in mw namespace 2023-07-07 19:01:59 +02:00
exception Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
externalstore Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
filebackend filebackend: Split missing file and error on getLocalReference/Copy 2023-04-29 01:01:07 +02:00
filerepo Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
GlobalFunctions Resolve GlobalFunctions phpunit filename deprecation errors 2023-07-01 09:30:42 +00:00
HookContainer Remove the $replace parameter from HookContainer::scopedRegister. 2023-06-14 11:00:54 +00:00
htmlform htmlform: Allow validation-callback to return Status instances 2023-07-09 19:53:01 +02:00
http Remove deprecated MWHttpRequest::factory 2023-04-26 22:23:06 +02:00
import WikiImporter: Improve error message output 2023-07-09 22:48:55 +00:00
installer
interwiki tests: Migrate Database::delete calls to DeleteQueryBuilder 2023-07-14 14:48:42 +02:00
jobqueue Deprecate MediaWikiIntegrationTestCase::$users 2023-07-25 12:12:43 +00:00
language Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
languages Add tests for date formatting in Walloon (wa) 2023-08-04 16:45:32 +02:00
libs objectcache: Reduce boilerplate and indirection around makeKey() 2023-08-03 10:42:56 +02:00
linkeddata Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
linker Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
logging Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
mail tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
media Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
Message
Navigation tests: Change some setMwGlobals to overrideConfigValue 2023-07-17 23:02:32 +02:00
objectcache Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
page Fix more non-database tests accessing the database 2023-08-06 15:30:41 +00:00
pager Fix DB usage in non-database tests 2023-07-21 13:52:47 +02:00
ParamValidator/TypeDef tests: Avoid database usage when possible 2023-07-31 00:46:13 +00:00
parser Fix more non-database tests accessing the database 2023-08-06 15:30:41 +00:00
password
Permissions Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
poolcounter
preferences Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
profiler
rcfeed rcfeed: Add 'notify_url' and 'title_url' to MachineReadableRCFeedFormatter 2023-05-19 15:48:40 +03:00
registration Simplify HookContainer (v2) 2023-06-06 12:06:23 +02:00
ResourceLoader Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
Rest tests: Prevent leaking $_SERVER in RequestFromGlobalsTest 2023-07-19 09:23:52 +02:00
Revision Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
search Fix more non-database tests accessing the database 2023-08-06 15:30:41 +00:00
session Reorg: Move ProxyLookup to Request/ 2023-08-06 12:22:58 +02:00
shell Make Shell::makeScriptCommand use run.php 2023-07-25 01:35:59 +00:00
site site: Use DeleteQueryBuilder in DBSiteStore 2023-07-06 22:18:36 +00:00
skins Fix more non-database tests accessing the database 2023-08-06 15:30:41 +00:00
sparql tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
specialpage Merge "Simplify WHERE conditions with field IS NULL" 2023-07-24 18:34:30 +00:00
specials tests: Avoid database usage when possible 2023-07-31 00:46:13 +00:00
Storage Migrate assertSelect() to SelectQueryBuilder 2023-06-28 09:03:58 +10:00
title Inject extension namespaces into NamespaceInfo 2023-07-16 22:53:26 +02:00
upload Replace usages of ApiTestCase::$users 2023-07-25 12:12:58 +00:00
user Allow DefaultOptionsLookup to be used with registered users in tests 2023-08-07 01:18:50 +02:00
utils
watcheditem Deprecate MediaWikiIntegrationTestCase::$users 2023-07-25 12:12:43 +00:00
AutoLoaderTest.php
CategoryTest.php Category: Widen @covers annotations in unit tests 2023-05-30 15:59:25 +01:00
CommentStoreCommentTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CommentStoreTest.php CommentStore: Drop temp table code 2023-06-13 23:30:58 +00:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
EditPageConstraintsTest.php tests: Migrate calls to Database::update to UpdateQueryBuilder 2023-07-14 15:40:11 +02:00
EditPageTest.php tests: Migrate calls to Database::update to UpdateQueryBuilder 2023-07-14 15:40:11 +02:00
ExportTest.php tests: Require existing page in ExportTest 2023-07-29 18:24:27 +00:00
ExtraParserTest.php
FauxRequestTest.php Replace some more usages of deprecated MWException 2023-06-09 02:07:08 +02:00
GitInfoTest.php
HooksTest.php HookContainer: avoid instantiation of handlers when calling register() 2023-07-22 16:40:14 +02:00
HtmlTest.php tests: Change some setMwGlobals to overrideConfigValue 2023-07-17 23:02:32 +02:00
LinkerTest.php tests: Use Title::makeTitle instead of Title::newFromText 2023-06-19 21:54:57 +02:00
LinkFilterTest.php ExternalLinks: Make oneWildcard avoid adding wildcard to domain 2023-07-10 18:38:55 +02:00
MediaWikiServicesTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
MediaWikiTest.php phpunit: Do not call addCoreDBData if the test doesn't need the DB 2023-07-25 11:59:31 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
MessageTest.php MWTimestamp,Message: Widen @covers annotations in unit tests 2023-06-03 16:30:15 +01:00
MockServiceWiring.php
MovePageTest.php Migrate assertSelect() to SelectQueryBuilder 2023-06-28 09:03:58 +10:00
MultiHttpClientTest.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
MWTimestampTest.php MWTimestamp,Message: Widen @covers annotations in unit tests 2023-06-03 16:30:15 +01:00
OutputPageTest.php OutputPageTest: specify required config value 2023-07-16 15:19:58 +02:00
SampleTest.php tests: Use Title::makeTitle instead of Title::newFromText 2023-06-19 21:54:57 +02:00
SiteStatsTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
StatusTest.php
TemplateCategoriesTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
TestUser.php Merge "tests: Migrate Database::update usages to UpdateQueryBuilder" 2023-06-08 13:25:06 +00:00
TestUserRegistry.php Remove non-existing password parameter in TestUserRegistry 2023-07-07 10:38:32 +02:00
TimeAdjustTest.php
TitleTest.php Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
TitleUrlTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
TrackingCategoriesTest.php Reorg: Move category-related classes from includes/ to Category/ 2023-02-09 20:18:54 +01:00
WebRequestTest.php Reorg: Move ProxyLookup to Request/ 2023-08-06 12:22:58 +02:00
WikiMapTest.php Fix space after comma in single-line array declaration 2023-07-24 19:04:59 +02:00
XmlTest.php [tests] Add a regression test for Xml::input 2023-07-11 18:17:00 +02:00