jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/398543 )
Change subject: Set wgCommentTableSchemaMigrationStage in RevisionStoreTest
......................................................................
Set wgCommentTableSchemaMigrationStage in RevisionStoreTest
Change-Id: I2d8bfdee0a30a54f4315c8056b7ac84f47254db2
---
M tests/phpunit/includes/Storage/RevisionStoreTest.php
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/phpunit/includes/Storage/RevisionStoreTest.php
b/tests/phpunit/includes/Storage/RevisionStoreTest.php
index efad1b1..18dbc250 100644
--- a/tests/phpunit/includes/Storage/RevisionStoreTest.php
+++ b/tests/phpunit/includes/Storage/RevisionStoreTest.php
@@ -213,6 +213,7 @@
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 @@
public function testGetArchiveQueryInfo_contentHandlerDb() {
$store = $this->getRevisionStore();
$store->setContentHandlerUseDB( true );
+ $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage',
MIGRATION_OLD );
$this->assertEquals(
[
'tables' => [
@@ -269,6 +271,7 @@
public function testGetArchiveQueryInfo_noContentHandlerDb() {
$store = $this->getRevisionStore();
$store->setContentHandlerUseDB( false );
+ $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage',
MIGRATION_OLD );
$this->assertEquals(
[
'tables' => [
--
To view, visit https://gerrit.wikimedia.org/r/398543
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2d8bfdee0a30a54f4315c8056b7ac84f47254db2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits