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 "MCR: Add temporary web UI mcrundo action"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
Storage
/
PageUpdaterTest.php
diff --git
a/tests/phpunit/includes/Storage/PageUpdaterTest.php
b/tests/phpunit/includes/Storage/PageUpdaterTest.php
index
f01c6ba
..
758537d
100644
(file)
--- a/
tests/phpunit/includes/Storage/PageUpdaterTest.php
+++ b/
tests/phpunit/includes/Storage/PageUpdaterTest.php
@@
-19,6
+19,13
@@
use WikiPage;
*/
class PageUpdaterTest extends MediaWikiTestCase {
*/
class PageUpdaterTest extends MediaWikiTestCase {
+ public static function setUpBeforeClass() {
+ parent::setUpBeforeClass();
+
+ // force service reset!
+ MediaWikiServices::getInstance()->resetServiceForTesting( 'RevisionStore' );
+ }
+
private function getDummyTitle( $method ) {
return Title::newFromText( $method, $this->getDefaultWikitextNS() );
}
private function getDummyTitle( $method ) {
return Title::newFromText( $method, $this->getDefaultWikitextNS() );
}
@@
-217,6
+224,7
@@
class PageUpdaterTest extends MediaWikiTestCase {
// check site stats - this asserts that derived data updates where run.
$stats = $this->db->selectRow( 'site_stats', '*', '1=1' );
// check site stats - this asserts that derived data updates where run.
$stats = $this->db->selectRow( 'site_stats', '*', '1=1' );
+ $this->assertNotNull( $stats, 'site_stats' );
$this->assertSame( $oldStats->ss_total_pages + 0, (int)$stats->ss_total_pages );
$this->assertSame( $oldStats->ss_total_edits + 2, (int)$stats->ss_total_edits );
}
$this->assertSame( $oldStats->ss_total_pages + 0, (int)$stats->ss_total_pages );
$this->assertSame( $oldStats->ss_total_edits + 2, (int)$stats->ss_total_edits );
}