diff options
Diffstat (limited to 'MLEB/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php')
-rw-r--r-- | MLEB/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MLEB/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php b/MLEB/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php index ea90fc16..50674ec5 100644 --- a/MLEB/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php +++ b/MLEB/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php @@ -14,7 +14,7 @@ class MessageGroupStatesUpdaterJobTest extends MediaWikiIntegrationTestCase { $this->setTemporaryHook( 'TranslatePostInitGroups', [ $this, 'getTestGroups' ] ); $mg = MessageGroups::singleton(); - $mg->setCache( new WANObjectCache( [ 'cache' => wfGetCache( 'hash' ) ] ) ); + $mg->setCache( new WANObjectCache( [ 'cache' => new HashBagOStuff() ] ) ); $mg->recache(); } @@ -115,7 +115,7 @@ class MessageGroupStatesUpdaterJobTest extends MediaWikiIntegrationTestCase { $page = WikiPage::factory( $title ); $content = ContentHandler::makeContent( 'trans1', $title ); - $status = $page->doEditContent( $content, __METHOD__, 0, false, $user ); + $status = TranslateUtils::doPageEdit( $page, $content, $user, __METHOD__ ); self::translateRunJobs(); $currentState = ApiGroupReview::getState( $group, 'fi' ); @@ -132,7 +132,7 @@ class MessageGroupStatesUpdaterJobTest extends MediaWikiIntegrationTestCase { $page = WikiPage::factory( $title ); $content = ContentHandler::makeContent( 'trans2', $title ); - $status = $page->doEditContent( $content, __METHOD__, 0, false, $user ); + $status = TranslateUtils::doPageEdit( $page, $content, $user, __METHOD__ ); self::translateRunJobs(); $currentState = ApiGroupReview::getState( $group, 'fi' ); @@ -149,7 +149,7 @@ class MessageGroupStatesUpdaterJobTest extends MediaWikiIntegrationTestCase { $page = WikiPage::factory( $title ); $content = ContentHandler::makeContent( 'trans1 updated', $title ); - $page->doEditContent( $content, __METHOD__, 0, false, $user ); + TranslateUtils::doPageEdit( $page, $content, $user, __METHOD__ ); self::translateRunJobs(); $currentState = ApiGroupReview::getState( $group, 'fi' ); |