dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "rdbms: set the schema in the LBFactory local domain"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
maintenance
/
backupTextPassTest.php
diff --git
a/tests/phpunit/maintenance/backupTextPassTest.php
b/tests/phpunit/maintenance/backupTextPassTest.php
index
0a1f3b4
..
ad9bf3e
100644
(file)
--- a/
tests/phpunit/maintenance/backupTextPassTest.php
+++ b/
tests/phpunit/maintenance/backupTextPassTest.php
@@
-1,5
+1,14
@@
<?php
<?php
+namespace MediaWiki\Tests\Maintenance;
+
+use MediaWikiLangTestCase;
+use TextContentHandler;
+use TextPassDumper;
+use Title;
+use WikiExporter;
+use WikiPage;
+
require_once __DIR__ . "/../../../maintenance/dumpTextPass.php";
/**
require_once __DIR__ . "/../../../maintenance/dumpTextPass.php";
/**
@@
-34,7
+43,7
@@
class TextPassDumperDatabaseTest extends DumpTestCase {
$this->tablesUsed[] = 'text';
$this->mergeMwGlobalArrayValue( 'wgContentHandlers', [
$this->tablesUsed[] = 'text';
$this->mergeMwGlobalArrayValue( 'wgContentHandlers', [
- "BackupTextPassTestModel" =>
"BackupTextPassTestModelHandler"
+ "BackupTextPassTestModel" =>
BackupTextPassTestModelHandler::class,
] );
$ns = $this->getDefaultWikitextNS();
] );
$ns = $this->getDefaultWikitextNS();
@@
-170,7
+179,7
@@
class TextPassDumperDatabaseTest extends DumpTestCase {
];
// The mock itself
];
// The mock itself
- $prefetchMock = $this->getMockBuilder(
'BaseDump'
)
+ $prefetchMock = $this->getMockBuilder(
BaseDump::class
)
->setMethods( [ 'prefetch' ] )
->disableOriginalConstructor()
->getMock();
->setMethods( [ 'prefetch' ] )
->disableOriginalConstructor()
->getMock();