RevisionIntegrationTest for newFromArchiveRow with ContentHandlerUseDB
[lhc/web/wiklou.git] / tests / phpunit / includes / RevisionIntegrationTest.php
index 4904f02..45e33db 100644 (file)
@@ -225,10 +225,18 @@ class RevisionIntegrationTest extends MediaWikiTestCase {
                $this->assertRevEquals( $orig, $rev );
        }
 
                $this->assertRevEquals( $orig, $rev );
        }
 
+       public function provideTrueFalse() {
+               yield [ true ];
+               yield [ false ];
+       }
+
        /**
        /**
+        * @dataProvider provideTrueFalse
         * @covers Revision::newFromArchiveRow
         */
         * @covers Revision::newFromArchiveRow
         */
-       public function testNewFromArchiveRow() {
+       public function testNewFromArchiveRow( $contentHandlerUseDB ) {
+               $this->setMwGlobals( 'wgContentHandlerUseDB', $contentHandlerUseDB );
+
                $page = $this->createPage(
                        'RevisionStorageTest_testNewFromArchiveRow',
                        'Lorem Ipsum',
                $page = $this->createPage(
                        'RevisionStorageTest_testNewFromArchiveRow',
                        'Lorem Ipsum',