wiki.techinc.nl/tests/phpunit/unit/includes
Amir Sarabadani 8614e30638 rdbms: Stop accepting live connection in DBConnRef constructor
This just makes the class overly complex and defies the whole point of
having this class in the first place (=delaying getting db connections).

It makes it harder to read and understand and specially polymorphic
arguments are quite confusing.

It also would break the reloading db on the fly (I6c3ffde62f6e), users
of DBConnectionRef should not know about the underlying connection, this
class is trying encpsulate that and accepting connection in constructor
breaks this encapsulation.

Bug: T298485
Depends-On: I951ab99ae766788dbae8bd338aaae114a388b21f
Change-Id: I743c0565504c65c4dedf29f2a36d4c386601fda0
2022-08-08 18:11:31 +02:00
..
actions
api
auth Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
block
cache Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
changes tests: Use namespaced IDatabase class 2022-05-28 00:09:55 +02:00
CommentFormatter
composer
config Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
content Make use of PHPUnit fail() shortcut 2022-07-14 14:48:15 +02:00
context DerivativeContext: Create WikiPage from derivated title 2022-07-03 15:53:28 +02:00
dao
db Allow DB config to be reloaded on the fly 2022-08-05 17:32:12 +02:00
debug Tests: Fix some @covers statements 2022-06-06 01:02:39 +01:00
deferred
diff Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
edit ParsoidOutputStash: make storage backend configurable. 2022-06-14 14:11:37 +01:00
editpage EditPage: Disentangle edit summary and section title 2022-07-19 09:56:05 +00:00
exception Migrate use of ${var}-style string interpolation 2022-07-29 02:45:09 +02:00
filebackend Tests: Use createNoOpMock() shortcut in a few more places 2022-07-18 21:25:31 +00:00
filerepo/file
GlobalFunctions mediawiki.util: Add parentheses to wfUrlencode test cases 2022-08-05 16:30:38 -07:00
historyblob DiffHistoryBlob: Remove workarounds for old PECL xdiff versions 2022-05-31 00:11:27 -04:00
HookContainer
htmlform
http
import [php8.1] Make WikiImporterFactoryTest use better mock for ImportSource 2022-07-24 07:34:10 -07:00
installer
interwiki Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
jobqueue
json Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
language Merge "Step 1 of renaming sr-ec and sr-el to sr-cyrl and sr-latn" 2022-07-20 22:31:39 +00:00
libs rdbms: Stop accepting live connection in DBConnRef constructor 2022-08-08 18:11:31 +02:00
linker
mail Remove access to config globals from more classes 2022-04-28 18:36:28 +03:00
media
Message
objectcache Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
page [php8] Make DeletePageTest stop giving warnings on php8.1 2022-07-23 12:22:19 -07:00
ParamValidator/TypeDef
parser Merge "Replace trivial usa of mock builder with createMock() shortcut" 2022-07-19 11:41:12 +00:00
password
Permissions permission: Simplify @covers annotations in PermissionManagerTest 2022-07-07 18:22:13 -07:00
poolcounter
preferences Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
rcfeed RCFeedTest: Ensure wgRCEngines is set to array for test case 2022-06-03 14:43:07 +00:00
registration Collect autoloader info in ExtensionProcessor 2022-06-07 17:39:00 +02:00
ResourceLoader resourceloader: Tweak RL\FilePath handling in packageFiles 2022-05-27 22:40:41 +01:00
Rest Fix incomplete test case in CorsUtilsTest 2022-08-06 09:12:26 +00:00
Revision tests: Remove non-existing method arguments from revision-related tests 2022-08-06 10:49:59 +00:00
revisionlist Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
search phpunit: Add tests for SearchSuggestionSet::fromTitles() 2022-05-06 01:39:28 +01:00
session
Settings Move dynamic defaults into MainConfigSchema 2022-07-07 09:55:48 +10:00
shell
site
skins Remove poweredbyico SkinTemplate variable AND SkinGetPoweredBy hook 2022-06-28 22:39:33 +00:00
Storage Storage: Warm parsoid parser cache with parsoid outputs 2022-06-28 09:05:41 +00:00
tidy
title
user Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
utils MWCryptHashTest: Move into libs directory 2022-07-10 05:15:54 -04:00
watcheditem watcheditem: Replace deprecated User::getOption 2022-08-05 22:31:09 +00:00
watchlist tests: Use WikiPageFactory to create WikiPage object 2022-06-26 23:21:02 +02:00
BadFileLookupTest.php BadFileLookupTest: avoid ' in literals, breaks gitiles highlighting 2022-08-02 22:11:23 +00:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php
FactoryArgTestTrait.php Make use of PHPUnit fail() shortcut 2022-07-14 14:48:15 +02:00
FauxResponseTest.php
FeedUtilsTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php
HeaderCallbackTest.php
HtmlHelperTest.php Add HtmlHelper::modifyElements() for small HTML modifications 2022-05-08 15:55:00 +02:00
LicensesTest.php
ListToggleTest.php Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
MovePageTest.php
PathRouterTest.php
PingbackTest.php Fix visibility of setUp methods in tests 2022-05-17 14:11:22 +02:00
ProxyLookupTest.php
ReadOnlyModeTest.php Make ReadOnlyModeTest work in php8. 2022-07-23 19:01:58 +00:00
SetupDynamicConfigTest.php Don't add $wgExtraNamespaces to $wgCanonicalNamespaceNames 2022-07-28 08:23:41 -04:00
SiteConfigurationTest.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
TitleArrayFromResultTest.php
TitleTest.php Title: Hard deprecate Title::newFromTitleValue() 2022-05-09 21:14:13 +01:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php