RevisionIntegrationTest for newFromArchiveRow with ContentHandlerUseDB
authoraddshore <addshorewiki@gmail.com>
Sat, 14 Oct 2017 10:25:28 +0000 (11:25 +0100)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 17 Oct 2017 00:55:24 +0000 (17:55 -0700)
Change-Id: I6edea4f1de69f5df33f6389f9d7a5be2717c0bb2

tests/phpunit/includes/RevisionIntegrationTest.php

index 4904f02..45e33db 100644 (file)
@@ -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',