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 "Fix ParserOutput::getText 'unwrap' flag for end-of-doc comment"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
Storage
/
RevisionStoreDbTest.php
diff --git
a/tests/phpunit/includes/Storage/RevisionStoreDbTest.php
b/tests/phpunit/includes/Storage/RevisionStoreDbTest.php
index
e33de20
..
d31ca5c
100644
(file)
--- a/
tests/phpunit/includes/Storage/RevisionStoreDbTest.php
+++ b/
tests/phpunit/includes/Storage/RevisionStoreDbTest.php
@@
-34,6
+34,14
@@
use WikitextContent;
*/
class RevisionStoreDbTest extends MediaWikiTestCase {
*/
class RevisionStoreDbTest extends MediaWikiTestCase {
+ public function setUp() {
+ parent::setUp();
+ $this->tablesUsed[] = 'archive';
+ $this->tablesUsed[] = 'page';
+ $this->tablesUsed[] = 'revision';
+ $this->tablesUsed[] = 'comment';
+ }
+
/**
* @return LoadBalancer
*/
/**
* @return LoadBalancer
*/
@@
-44,7
+52,7
@@
class RevisionStoreDbTest extends MediaWikiTestCase {
->getMock();
$lb->method( 'reallyOpenConnection' )->willReturnCallback(
->getMock();
$lb->method( 'reallyOpenConnection' )->willReturnCallback(
- function ( array $server, $dbNameOverride
= false
) {
+ function ( array $server, $dbNameOverride ) {
return $this->getDatabaseMock( $server );
}
);
return $this->getDatabaseMock( $server );
}
);
@@
-125,6
+133,7
@@
class RevisionStoreDbTest extends MediaWikiTestCase {
$loadBalancer,
$blobStore,
new WANObjectCache( [ 'cache' => new HashBagOStuff() ] ),
$loadBalancer,
$blobStore,
new WANObjectCache( [ 'cache' => new HashBagOStuff() ] ),
+ MediaWikiServices::getInstance()->getCommentStore(),
$wikiId
);
$wikiId
);