wiki.techinc.nl/tests/phpunit/includes/Storage
Aaron Schulz 14ee3f2107 rdbms: specify DB name and table prefix even for the local domain
When LoadBalancer opens new local domain connections, it currently
assumes that the domain specified by the server info array is the
same. For sanity, make sure that the handle is set to the local
domain.

The main LBFactory/LoadBalancer use $wgDBname/$wgDBprefix as the
local domain, corresponding with wfWikiId(). This relation is set
automatically in MWLBFactory. If $wgLBFactoryConf/$wgDBservers is
manually configured in a way breaking this correspondance, then it
is misconfigured.

Fixes made to avoid test failure:
* Make sure LoadBalancer::setDomainPrefix() updates the local
  domain alias member. Also do not bother changing the domain of
  foreign connections.
* Use the right domain ID for the connection array key names in
  LoadBalancer::openForeignConnection().
* Now that JobQueueTest no longer mistakenly uses the non-test
  tables, force it to use the main DB_MASTER handle so that it can
  see the unit test tables even if they are TEMPORARY; such tables
  are tied to the TCP connection, so separate handles see different
  temporary tables.

Change-Id: I56f8b32fe957f984b8c9753e6db3b20abe96b038
2018-01-16 17:06:52 +00:00
..
BlobStoreFactoryTest.php Fix BlobStoreFactoryTest @covers tag 2018-01-08 12:03:35 +00:00
MutableRevisionRecordTest.php
MutableRevisionSlotsTest.php
RevisionSlotsTest.php Fix @covers tags to use absolute class names in Storage tests 2017-12-14 19:20:51 -08:00
RevisionStoreDbTest.php rdbms: specify DB name and table prefix even for the local domain 2018-01-16 17:06:52 +00:00
RevisionStoreRecordTest.php Fix additional usage of incorrect case 2017-12-15 11:58:11 +01:00
RevisionStoreTest.php Add tests for legacy encoding when constructing RevisionRecords 2018-01-12 14:59:52 +00:00
SlotRecordTest.php
SqlBlobStoreTest.php SqlBlobStoreTest: Use utf-8 as name in iconv 2017-12-15 19:56:48 +01:00