wiki.techinc.nl/tests/phpunit/includes/Revision
Aaron Schulz 99d5d2e8cc rdbms: cleanup getServer() and connection parameter fields in Database
Make getServer() always return a string, as documented, even with new
Database::NEW_UNCONNECTED handles that have yet to call open(). If the
'host' parameter to __construct() is ''/null, getServer() now returns
'localhost' instead of null. This avoids problems like fatal errors in
calls to TransactionProfiler::recordConnection().

Use Database constants for "connectionParams" field keys for better
static analysis.

Also:
* Add Database::getServerName() method that returns "readable" server
  names in the style of LoadBalancer::getServerName(). Note that the
  "hostName" field is already passed in from LoadBalancer.
* Migrate most getServer() callers to getServerName() for easier
  debugging and more readable logging.
* Also, normalize Database/LoadBalancer SPI logging context to use
  "db_server" and reduce logging code duplication in LoadBalancer.

Bug: T277056
Change-Id: I00ed4049ebb45edab1ea07561c47e226a423ea3b
2021-05-05 19:44:02 +00:00
..
ContributionsLookupTest.php Fix order of parameters in assertions 2021-05-03 15:50:53 +00:00
McrRevisionStoreDbTest.php build: Update mediawiki/mediawiki-codesniffer to 35.0.0 2021-01-31 13:34:38 +00:00
MutableRevisionRecordTest.php Deprecate constructing revision with non-proper page 2021-03-10 22:05:06 +01:00
RenderedRevisionTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
RevisionArchiveRecordTest.php Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
RevisionQueryInfoTest.php Stop using legacy ActorMigration field "ar_user" 2021-04-20 12:44:29 +10:00
RevisionRendererTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
RevisionStoreDbTestBase.php rdbms: cleanup getServer() and connection parameter fields in Database 2021-05-05 19:44:02 +00:00
RevisionStoreRecordTest.php Use UserIdentityValue in tests where possible 2021-04-22 09:32:43 +02:00
RevisionStoreTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
SlotRecordTest.php Add support for derived MCR slots 2021-03-18 15:34:46 -04:00