Addshore has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/392390 )
Change subject: Set wgCommentTableSchemaMigrationStage for some RevisionTests
......................................................................
Set wgCommentTableSchemaMigrationStage for some RevisionTests
Bug: T180922
Change-Id: Ib88b53e36a66042b3c177cae0663040b4fb14a4c
---
M tests/phpunit/includes/RevisionTest.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/90/392390/1
diff --git a/tests/phpunit/includes/RevisionTest.php
b/tests/phpunit/includes/RevisionTest.php
index 6965f09..d933d93 100644
--- a/tests/phpunit/includes/RevisionTest.php
+++ b/tests/phpunit/includes/RevisionTest.php
@@ -372,6 +372,7 @@
* @covers Revision::fetchFromConds
*/
public function testFetchFromConds( $flags, array $options ) {
+ $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage',
MIGRATION_OLD );
$conditions = [ 'conditionsArray' ];
$db = $this->getMock( IDatabase::class );
@@ -650,6 +651,7 @@
public function testSelectFields( $contentHandlerUseDB, $expected ) {
$this->hideDeprecated( 'Revision::selectFields' );
$this->setMwGlobals( 'wgContentHandlerUseDB',
$contentHandlerUseDB );
+ $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage',
MIGRATION_OLD );
$this->assertEquals( $expected, Revision::selectFields() );
}
@@ -708,6 +710,7 @@
public function testSelectArchiveFields( $contentHandlerUseDB,
$expected ) {
$this->hideDeprecated( 'Revision::selectArchiveFields' );
$this->setMwGlobals( 'wgContentHandlerUseDB',
$contentHandlerUseDB );
+ $this->setMwGlobals( 'wgCommentTableSchemaMigrationStage',
MIGRATION_OLD );
$this->assertEquals( $expected, Revision::selectArchiveFields()
);
}
--
To view, visit https://gerrit.wikimedia.org/r/392390
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib88b53e36a66042b3c177cae0663040b4fb14a4c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits