From: Umherirrender Date: Fri, 15 Dec 2017 20:44:27 +0000 (+0100) Subject: Set wgCommentTableSchemaMigrationStage in RevisionStoreTest X-Git-Tag: 1.31.0-rc.0~1117^2 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=78dd15c08d2d7349ea734d17b1ee29dd47f10ed0 Set wgCommentTableSchemaMigrationStage in RevisionStoreTest Change-Id: I2d8bfdee0a30a54f4315c8056b7ac84f47254db2 --- diff --git a/tests/phpunit/includes/Storage/RevisionStoreTest.php b/tests/phpunit/includes/Storage/RevisionStoreTest.php index efad1b14f5..18dbc25046 100644 --- a/tests/phpunit/includes/Storage/RevisionStoreTest.php +++ b/tests/phpunit/includes/Storage/RevisionStoreTest.php @@ -213,6 +213,7 @@ class RevisionStoreTest extends MediaWikiTestCase { public function testGetQueryInfo( $contentHandlerUseDb, $options, $expected ) { $store = $this->getRevisionStore(); $store->setContentHandlerUseDB( $contentHandlerUseDb ); + $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage', MIGRATION_OLD ); $this->assertEquals( $expected, $store->getQueryInfo( $options ) ); } @@ -242,6 +243,7 @@ class RevisionStoreTest extends MediaWikiTestCase { public function testGetArchiveQueryInfo_contentHandlerDb() { $store = $this->getRevisionStore(); $store->setContentHandlerUseDB( true ); + $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage', MIGRATION_OLD ); $this->assertEquals( [ 'tables' => [ @@ -269,6 +271,7 @@ class RevisionStoreTest extends MediaWikiTestCase { public function testGetArchiveQueryInfo_noContentHandlerDb() { $store = $this->getRevisionStore(); $store->setContentHandlerUseDB( false ); + $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage', MIGRATION_OLD ); $this->assertEquals( [ 'tables' => [