From 387bd38287b7e4a493a57a9cb3e778e9efa8b661 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 27 Sep 2019 13:10:22 +0200 Subject: [PATCH] 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 --- tests/phpunit/MediaWikiIntegrationTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1