From: addshore Date: Sat, 14 Oct 2017 10:25:28 +0000 (+0100) Subject: RevisionIntegrationTest for newFromArchiveRow with ContentHandlerUseDB X-Git-Tag: 1.31.0-rc.0~1755 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=29990dadc71c25a5cd0fbf52d798b543a4964ac9;ds=sidebyside RevisionIntegrationTest for newFromArchiveRow with ContentHandlerUseDB Change-Id: I6edea4f1de69f5df33f6389f9d7a5be2717c0bb2 --- diff --git a/tests/phpunit/includes/RevisionIntegrationTest.php b/tests/phpunit/includes/RevisionIntegrationTest.php index 4904f02036..45e33dba8d 100644 --- a/tests/phpunit/includes/RevisionIntegrationTest.php +++ b/tests/phpunit/includes/RevisionIntegrationTest.php @@ -225,10 +225,18 @@ class RevisionIntegrationTest extends MediaWikiTestCase { $this->assertRevEquals( $orig, $rev ); } + public function provideTrueFalse() { + yield [ true ]; + yield [ false ]; + } + /** + * @dataProvider provideTrueFalse * @covers Revision::newFromArchiveRow */ - public function testNewFromArchiveRow() { + public function testNewFromArchiveRow( $contentHandlerUseDB ) { + $this->setMwGlobals( 'wgContentHandlerUseDB', $contentHandlerUseDB ); + $page = $this->createPage( 'RevisionStorageTest_testNewFromArchiveRow', 'Lorem Ipsum',