Make WikiMap::isCurrentWikiDbDomain() more rigorous
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 28 Mar 2019 22:37:52 +0000 (15:37 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 29 Mar 2019 19:03:28 +0000 (19:03 +0000)
commit7dbd37a7c773200b71ddece7a292c7e86efdd52b
tree10fb423034f3b0a4290f6ae599e57c8bdb758393
parent1a940616b174a65d26db1109ab07a2d3a0231c35
Make WikiMap::isCurrentWikiDbDomain() more rigorous

This already requires a DB domain ID, so there is no reason to have
hacks for trying to handle a wiki ID being passed in instead. If the
provided domain has a schema, it should not simply be ignored in the
comparison.

Change-Id: I9ced7a46fa05f32843a9a7d17391c5d0576b099c
includes/WikiMap.php
includes/jobqueue/JobQueue.php
tests/phpunit/includes/WikiMapTest.php
tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php
tests/phpunit/includes/jobqueue/JobQueueTest.php