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 "Make UserEditCountUpdate::doUpdate avoid comparing IDatabase instances"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
SiteStatsTest.php
diff --git
a/tests/phpunit/includes/SiteStatsTest.php
b/tests/phpunit/includes/SiteStatsTest.php
index
a6a92c6
..
b0d89a6
100644
(file)
--- a/
tests/phpunit/includes/SiteStatsTest.php
+++ b/
tests/phpunit/includes/SiteStatsTest.php
@@
-10,11
+10,11
@@
class SiteStatsTest extends MediaWikiTestCase {
$this->setService( 'MainWANObjectCache', $cache );
$jobq = JobQueueGroup::singleton();
$this->setService( 'MainWANObjectCache', $cache );
$jobq = JobQueueGroup::singleton();
- $jobq->push(
new NullJob(
Title::newMainPage(), [] ) );
+ $jobq->push(
Job::factory( 'null',
Title::newMainPage(), [] ) );
$this->assertEquals( 1, SiteStats::jobs(),
'A single job enqueued bumps jobscount stat to 1' );
$this->assertEquals( 1, SiteStats::jobs(),
'A single job enqueued bumps jobscount stat to 1' );
- $jobq->push(
new NullJob(
Title::newMainPage(), [] ) );
+ $jobq->push(
Job::factory( 'null',
Title::newMainPage(), [] ) );
$this->assertEquals( 1, SiteStats::jobs(),
'SiteStats::jobs() count does not reflect addition ' .
'of a second job (cached)'
$this->assertEquals( 1, SiteStats::jobs(),
'SiteStats::jobs() count does not reflect addition ' .
'of a second job (cached)'