Change-Id: I6edea4f1de69f5df33f6389f9d7a5be2717c0bb2
$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',