X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FRevisionDbTestBase.php;h=b36fd7dbb47d8c47843c83ef461b6bfdeb3540f2;hb=423ba71f426a603f50198220f6d2caa3b1cf04e4;hp=427a95e656c83ebd70441abf012149cba9119531;hpb=095a2a05b2aaccff26d7b871194a4edccd092707;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/RevisionDbTestBase.php b/tests/phpunit/includes/RevisionDbTestBase.php index 427a95e656..b36fd7dbb4 100644 --- a/tests/phpunit/includes/RevisionDbTestBase.php +++ b/tests/phpunit/includes/RevisionDbTestBase.php @@ -396,7 +396,8 @@ abstract class RevisionDbTestBase extends MediaWikiTestCase { $store = new RevisionStore( $services->getDBLoadBalancer(), $services->getService( '_SqlBlobStore' ), - $services->getMainWANObjectCache() + $services->getMainWANObjectCache(), + $services->getCommentStore() ); $store->setContentHandlerUseDB( $this->getContentHandlerUseDB() ); @@ -837,9 +838,9 @@ abstract class RevisionDbTestBase extends MediaWikiTestCase { public function provideGetContentHandler() { // NOTE: we expect the help namespace to always contain wikitext return [ - [ 'hello world', 'Help:Hello', null, null, 'WikitextContentHandler' ], - [ 'hello world', 'User:hello/there.css', null, null, 'CssContentHandler' ], - [ serialize( 'hello world' ), 'Dummy:Hello', null, null, 'DummyContentHandlerForTesting' ], + [ 'hello world', 'Help:Hello', null, null, WikitextContentHandler::class ], + [ 'hello world', 'User:hello/there.css', null, null, CssContentHandler::class ], + [ serialize( 'hello world' ), 'Dummy:Hello', null, null, DummyContentHandlerForTesting::class ], ]; }