From: daniel Date: Fri, 27 Sep 2019 11:10:22 +0000 (+0200) Subject: MWTestCase: include table prefix in domain for temp table only mode. X-Git-Tag: 1.34.0-rc.0~72^2~1 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=387bd38287b7e4a493a57a9cb3e778e9efa8b661;p=lhc%2Fweb%2Fwiklou.git MWTestCase: include table prefix in domain for temp table only mode. This patch allows PageUpdaterTest and DerivedPageDataUpdaterTest to function properly. Without this patch, the fail when run by themselves. See phab ticket for analysis. Bug: T234031 Change-Id: I0804b503bc8b860343a5141c0bfb25fe6855c87d --- diff --git a/tests/phpunit/MediaWikiIntegrationTestCase.php b/tests/phpunit/MediaWikiIntegrationTestCase.php index 27cbed593b..a82c0648f6 100644 --- a/tests/phpunit/MediaWikiIntegrationTestCase.php +++ b/tests/phpunit/MediaWikiIntegrationTestCase.php @@ -1465,7 +1465,7 @@ abstract class MediaWikiIntegrationTestCase extends PHPUnit\Framework\TestCase { $db->_originalTablePrefix = $oldPrefix; $lb = MediaWikiServices::getInstance()->getDBLoadBalancer(); - $lb->setTempTablesOnlyMode( self::$useTemporaryTables, $lb->getLocalDomainID() ); + $lb->setTempTablesOnlyMode( self::$useTemporaryTables, $db->getDomainID() ); } return true;