Merge "Fix a typo (folow -> follow)"
[lhc/web/wiklou.git] / tests / phpunit / maintenance / DumpTestCase.php
index eebc201..7647915 100644 (file)
@@ -68,7 +68,7 @@ abstract class DumpTestCase extends MediaWikiLangTestCase {
        ) {
                $status = $page->doEditContent(
                        ContentHandler::makeContent( $text, $page->getTitle(), $model ),
-                       $summary
+                       $summary, 0, false, $this->getTestUser()->getUser()
                );
 
                if ( $status->isGood() ) {
@@ -162,9 +162,9 @@ abstract class DumpTestCase extends MediaWikiLangTestCase {
         * @return string
         */
        protected function getXmlSchemaPath( $schemaVersion = null ) {
-               global $IP;
+               global $IP, $wgXmlDumpSchemaVersion;
 
-               $schemaVersion = $schemaVersion ?: '0.10';
+               $schemaVersion = $schemaVersion ?: $wgXmlDumpSchemaVersion;
 
                return "$IP/docs/export-$schemaVersion.xsd";
        }